Skip to content

Commit 9a1bd07

Browse files
cnbailianclaude
andcommitted
fix: add build step before tests in CI
Without the "bun" export condition, workspace packages resolve to dist/ instead of src/. The test job needs to build packages first so dist/ exists when tests import from workspace dependencies like repterm-api. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 19975f9 commit 9a1bd07

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ jobs:
8080
- name: Install dependencies
8181
run: bun install --frozen-lockfile
8282

83+
- name: Build all packages
84+
run: bun run build
85+
8386
- name: Run tests
8487
run: bun run test
8588

0 commit comments

Comments
 (0)