-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (39 loc) · 1.21 KB
/
chromatic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
# https://github.com/actions/setup-node?tab=readme-ov-file#usage
# The node-version input is optional. If not supplied, the node version from PATH will be used.
# However, it is recommended to always specify Node.js version and don't rely on the system one.
- uses: actions/setup-node@v4
with:
node-version: 20
- 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