Skip to content

Commit fcdd6fe

Browse files
committed
ci: build storybook first then pass storybook-static folder to chromatic
1 parent 76882c1 commit fcdd6fe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/chromatic.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ jobs:
2121
cache: 'npm'
2222
- run: npm ci
2323
- run: npm run build
24+
- run: npm run storybook:build
2425
- name: Publish to Chromatic
2526
uses: chromaui/action@latest
2627
with:
2728
token: ${{ secrets.GITHUB_TOKEN }}
2829
projectToken: 2af88e64d1ab
2930
exitOnceUploaded: true
30-
buildScriptName: 'storybook:build'
31+
storybookBuildDir: storybook-static

.github/workflows/toolkit-ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ jobs:
2222
- run: npm run build
2323
- run: npm run check
2424
- run: npm test -- --coverage
25+
- run: npm run storybook:build
2526
- name: Publish to Chromatic
2627
uses: chromaui/action@latest
2728
with:
2829
token: ${{ secrets.GITHUB_TOKEN }}
2930
projectToken: 2af88e64d1ab
3031
exitOnceUploaded: true
31-
buildScriptName: 'storybook:build'
32+
storybookBuildDir: storybook-static

0 commit comments

Comments
 (0)