Skip to content

fix: migrate CI and release workflows fully to bun#35

Draft
teallarson wants to merge 1 commit intomainfrom
teallarson/bun-ci-publish
Draft

fix: migrate CI and release workflows fully to bun#35
teallarson wants to merge 1 commit intomainfrom
teallarson/bun-ci-publish

Conversation

@teallarson
Copy link
Copy Markdown
Collaborator

Summary

  • Migrates all CI and release workflows from npm to bun
  • Fixes npm publish 404 by using bun pm pack + npm publish <tarball> (workaround from oven-sh/bun#15601 since bun doesn't support --provenance)
  • Keeps actions/setup-node only in the release job where npm registry auth is needed for npm publish --provenance

Changes

release.yml:

  • npm run buildbun run build
  • npm publish --provenancebun pm pack then npm publish <tarball> --provenance
  • node -pbun -e for version check
  • Removed npm-specific env vars

ci.yml:

  • actions/setup-node + npm cioven-sh/setup-bun + bun install
  • All npm runbun run
  • node dist/index.jsbun dist/index.js in smoke tests
  • package-lock.jsonbun.lock in paths filter
  • Made oven-sh/setup-bun unconditional across all smoke test templates

Test plan

  • CI passes on this PR (lint-and-build, smoke tests)
  • After merge, verify release workflow publishes 0.5.3 to npm

🤖 Generated with Claude Code

@teallarson teallarson force-pushed the teallarson/bun-ci-publish branch from dfe657d to baac41a Compare April 9, 2026 15:44
- Replace npm ci/install with bun install across all jobs
- Replace npm run with bun run for lint, build, typecheck, format
- Use bun publish with NPM_CONFIG_TOKEN for release
- Remove actions/setup-node entirely (no longer needed)
- Remove id-token: write permission (no provenance)
- Replace node with bun for script execution in smoke tests
- Update paths-filter to watch bun.lock instead of package-lock.json

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@teallarson teallarson force-pushed the teallarson/bun-ci-publish branch from baac41a to 5d1875b Compare April 9, 2026 16:17
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