Merge remote-tracking branch 'parent/stable-4.4' into kb-draft-19.10-lts #125
Workflow file for this run
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' | |
| on: | |
| push: | |
| branches-ignore: | |
| - renovate/* | |
| - stable-* | |
| paths: | |
| - 'package.json' | |
| - 'yarn.lock' | |
| - '**/*.js' | |
| - '**/*.jsx' | |
| - '**/*.ts' | |
| - '**/*.tsx' | |
| - '**/*.css' | |
| - '**/*.scss' | |
| - '.github/workflows/chromatic.yml' | |
| jobs: | |
| chromatic: | |
| name: Run Chromatic | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'mastodon/mastodon' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Javascript environment | |
| uses: ./.github/actions/setup-javascript | |
| - name: Build Storybook | |
| run: yarn build-storybook | |
| - name: Run Chromatic | |
| uses: chromaui/action@v12 | |
| with: | |
| # ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| zip: true | |
| storybookBuildDir: 'storybook-static' |