Merge branch 'main' into pd/guardian-light-thankyou #10321
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: Chromatic | |
on: | |
push: | |
jobs: | |
upload-storybook: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: support-frontend | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
# Cache npm dependencies using https://github.com/bahmutov/npm-install | |
- name: Cache dependencies | |
uses: bahmutov/npm-install@v1 | |
with: | |
working-directory: support-frontend | |
- name: Install | |
run: yarn | |
- uses: chromaui/action@v11.20.2 | |
with: | |
workingDir: support-frontend | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
buildScriptName: "build-storybook" | |
exitOnceUploaded: true | |
onlyChanged: "!(main)" # only turbosnap on non-main branches |