Update the test image of The National Archives building #178
This file contains 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: Publish to Chromatic | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.storybook/**' | |
- 'src/**' | |
tags-ignore: | |
- '**' | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: chromatic | |
cancel-in-progress: true | |
jobs: | |
chromatic: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
- name: Install dependencies | |
run: npm ci | |
- name: Build Storybook | |
run: npm run build:storybook | |
- uses: chromaui/action@v1 | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
storybookBuildDir: storybook | |
exitZeroOnChanges: true | |
autoAcceptChanges: true |