Merge pull request #240 from storybookjs/feature/updated-figma-share-url #124
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check code validity | |
on: [push] | |
jobs: | |
check: | |
name: Check code format and TypeScript types | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Check files are formatted with Prettier | |
run: npx prettier --check README.md CONTRIBUTING.md package.json "packages/**/*.{js,jsx,ts,tsx,md,mdx,json}" | |
- name: Check TypeScript typings | |
run: | | |
cd packages/storybook-addon-designs | |
npx tsc --noEmit |