Skip to content

Merge branch 'main' into pd/guardian-light-thankyou #10321

Merge branch 'main' into pd/guardian-light-thankyou

Merge branch 'main' into pd/guardian-light-thankyou #10321

Workflow file for this run

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