Skip to content

Commit cc325cf

Browse files
xrendanclaude
andcommitted
Fix CI: build packages before tests, generate stats for Chromatic
- Add build:packages step before test step in CI so build.test.ts can import from dist/ (which is gitignored and not available in CI) - Add --stats-json to storybook build so Chromatic TurboSnap can find preview-stats.json Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 65a2edf commit cc325cf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
- name: Install dependencies
1717
run: bun install --frozen-lockfile
1818

19+
- name: Build packages
20+
run: bun run build:packages
21+
1922
- name: Run tests
2023
run: bun run test
2124

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"node": ">=22.0"
88
},
99
"scripts": {
10-
"build": "storybook build -o storybook-static",
10+
"build": "storybook build -o storybook-static --stats-json",
1111
"build:packages": "bun run build:colours && bun run build:components && bun run build:charts",
1212
"build:colours": "cd packages/colours && bun run build",
1313
"build:components": "cd packages/components && bun run build",

0 commit comments

Comments
 (0)