fix(ci): build before unit tests in release workflow (#1463)

The release workflow ran `bun test` before `bun run build`, but the
bundle regression tests in scripts/missing-module-stub.test.ts read the
shipped dist/cli.mjs. On a fresh release-tag checkout dist/ (gitignored)
does not exist yet, so both tests threw "dist/cli.mjs not found" and
failed the npm publish job. pr-checks.yml already builds first (via
`bun run smoke`); reorder release.yml to match.

Co-authored-by: OpenClaude <openclaude@gitlawb.com>
This commit is contained in:
Kevin Codex
2026-06-01 09:27:01 +08:00
committed by GitHub
co-authored by OpenClaude
parent 80e5c1dc5a
commit d35d4687ad
+3 -3
View File
@@ -59,15 +59,15 @@ jobs:
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Run unit tests
run: bun test --max-concurrency=1
- name: Smoke test
run: bun run smoke
- name: Build
run: bun run build
- name: Dry-run package
run: npm pack --dry-run