Skip to content

ci: explicit build step and switch to bun#12

Open
ytkimirti wants to merge 2 commits intomainfrom
ci/explicit-build-in-release
Open

ci: explicit build step and switch to bun#12
ytkimirti wants to merge 2 commits intomainfrom
ci/explicit-build-in-release

Conversation

@ytkimirti
Copy link
Copy Markdown
Contributor

@ytkimirti ytkimirti commented Apr 16, 2026

Summary

Two related cleanups to the CI/release pipeline:

1. Explicit build step in release workflow
The release workflow was relying on npm's prepublishOnly hook to build before npm publish. It worked, but was invisible when reading the workflow — someone looking at release.yml would reasonably conclude there's no build step. Added an explicit bun run build step so the pipeline is self-documenting and a failing tsc surfaces as its own named CI step instead of being buried inside publish output. prepublishOnly in package.json is left in place as a safety net for manual publishes.

2. Switch package manager to bun

  • Removed package-lock.json, added bun.lock (bun 1.3.11, text format)
  • Both workflows now use oven-sh/setup-bun@v2 + bun install --frozen-lockfile
  • Build / typecheck / tests run via bun run
  • release.yml keeps setup-node alongside setup-bun so npm publish --provenance still drives the actual publish — bun doesn't document a --provenance flag, so the sigstore attestation path is preserved unchanged

Verified locally: bun install, bun run build, bun run typecheck all pass.

The build was happening implicitly via npm's prepublishOnly hook, which
made it easy to miss when reading the workflow. Add an explicit
`npm run build` step so the release pipeline mirrors CI and fails loudly
if tsc breaks.
- Replace package-lock.json with bun.lock (bun 1.3.11, text format)
- Use oven-sh/setup-bun@v2 + `bun install --frozen-lockfile` in both
  workflows
- Run build/typecheck/tests via `bun run`
- Keep setup-node + `npm publish --provenance` in release.yml so the
  sigstore provenance attestation path is unchanged; bun handles the
  install and build steps
@ytkimirti ytkimirti changed the title ci: run build explicitly in release workflow ci: explicit build step and switch to bun Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant