Bump actions/setup-node from 4 to 6 #3
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: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| jobs: | |
| noop-act: | |
| if: ${{ github.actor == 'nektos/act' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: noop (act) | |
| run: echo "Skipping Chromatic under act; requires external service." | |
| chromatic: | |
| # Skip under nektos/act to avoid external network/service requirements | |
| if: ${{ github.actor != 'nektos/act' }} | |
| name: Visual regression (Chromatic) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 | |
| - name: Setup Node | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 | |
| with: | |
| node-version: 20 | |
| cache: "yarn" | |
| - name: Install dependencies | |
| run: | | |
| corepack enable || true | |
| yarn install --frozen-lockfile | |
| - name: Build Storybook | |
| run: yarn build-storybook | |
| - name: Publish to Chromatic | |
| uses: chromaui/action@016b2b6bd92fef54e5764ea1f15ada32f65939ce | |
| with: | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| storybookBuildDir: storybook-static | |
| onlyChanged: true | |
| exitOnceUploaded: true | |
| diagnostics: false |