Merge remote-tracking branch 'origin/main' into remove-available-date… #5909
Workflow file for this run
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' | |
# We get one Storybook per branch at https://<branch>--<appid>.chromatic.com | |
# https://www.chromatic.com/docs/permalinks | |
on: | |
push: | |
paths-ignore: | |
- '.buildkite/**' | |
- 'assets/**' | |
- 'cache/**' | |
- 'content/terraform/**' | |
- 'docs/**' | |
- 'identity/terraform/**' | |
- 'infrastructure/**' | |
- 'playwright/**' | |
- 'prismic-model/**' | |
- 'preview/**' | |
jobs: | |
chromatic-deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# TODO: Remove this line when we can safely upgrade all our packages | |
# to versions that support Node 16. | |
# See https://github.com/wellcomecollection/wellcomecollection.org/pull/9324 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: yarn | |
- name: Publish to Chromatic | |
uses: chromaui/action@v11 | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
onlyChanged: true | |
workingDir: cardigan | |
buildScriptName: build | |
storybookBaseDir: cardigan |