Merge branch 'main' into mg/OPS-2602 #8919
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
| # .github/workflows/chromatic.yml | |
| name: "Chromatic" | |
| on: | |
| push: | |
| paths: | |
| - 'packages/ui-components/**' | |
| - 'packages/shared/**' | |
| - 'packages/blocks/framework/**' | |
| - 'package-lock.json' | |
| jobs: | |
| chromatic: | |
| runs-on: ubuntu-latest | |
| env: | |
| CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| NODE_OPTIONS: --max-old-space-size=4096 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Cache node_modules | |
| id: node-modules-cache | |
| uses: actions/cache@v5.0.1 | |
| with: | |
| path: node_modules | |
| key: node-modules-cache-${{ hashFiles('package-lock.json', '.npmrc') }} | |
| save-always: true | |
| - name: Install dependencies | |
| if: steps.node-modules-cache.outputs.cache-hit != 'true' | |
| run: npm ci --prefer-offline | |
| - name: Run Chromatic | |
| if: env.CHROMATIC_PROJECT_TOKEN | |
| uses: chromaui/action@v13.3.5 | |
| with: | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| onlyChanged: true # 👈 Required option to enable TurboSnap | |
| storybookBaseDir: ./packages/ui-components |