Merge pull request #337 from dd3tech/fix/file-viewer #345
This file contains hidden or 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: Chromatic publish | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - src/components/** | |
| - src/stories/** | |
| - .storybook/** | |
| jobs: | |
| chromatic: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build Storybook | |
| run: npm run build-storybook | |
| - name: Publish on Chromatic | |
| run: | |
| npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN | |
| --exit-once-uploaded --exit-zero-on-changes | |
| env: | |
| CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} |