This repository was archived by the owner on Jun 6, 2025. It is now read-only.
v16.16.0 #2843
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 | |
| jobs: | |
| chromatic: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }} | |
| continue-on-error: true | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - name: Setup Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18.20.0 | |
| cache: 'yarn' | |
| - name: Install and Build 🔧 | |
| run: yarn | |
| - name: Publish to Chromatic | |
| uses: chromaui/action@v1 | |
| id: chromatic | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| onlyChanged: true | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| autoAcceptChanges: 'main' | |
| exitZeroOnChanges: true | |
| exitOnceUploaded: true | |
| buildScriptName: build-storybook:chromatic |