Update README.md #270
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 (Storybook) | |
| on: push | |
| permissions: | |
| contents: read | |
| jobs: | |
| chromatic: | |
| name: Run Chromatic (Storybook) | |
| # Dependabot-triggered runs cannot read Actions secrets, so the | |
| # Chromatic project token is unavailable; skip instead of failing. | |
| if: github.actor != 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Node | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run Chromatic | |
| uses: chromaui/action@latest | |
| env: | |
| # Pins the footer's version string so a version bump alone does not re-snapshot every story. | |
| CHROMATIC_STATIC_VERSION: "true" | |
| with: | |
| projectToken: ${{ secrets.CHROMATIC_STORYBOOK_PROJECT_TOKEN }} | |
| onlyChanged: true |