chore(release): adopt changesets with bun + workspace:^ inter-deps - #82
Merged
Conversation
… deps Replaces hand-bumping versions + manual npm publish (the source of this session's release friction: core stuck at 2.1.0 while server ran to 2.4.0, a CHANGELOG number collision, the playground pinned to a stale ^1.3.0). Researched + verified the bun gotcha: `changeset publish` does NOT resolve bun's `workspace:` protocol (it uses npm), but `bun publish` DOES (`workspace:^` → `^<version>` at pack time). So we version with Changesets and publish with `bun publish`. Verified: `bun pm pack` on @samesake/server emits `"@samesake/core": "^2.5.0"`. - Inter-package deps (server, cli) → `workspace:^`: dev always resolves to local; publish rewrites to a real range. Peer ranges left loose. - .changeset/config.json (access public, baseBranch main, private packages excluded from versioning). - root scripts: build, changeset, ci:version (`changeset version && bun update`), ci:publish (build → `bun publish` each packages/* → `changeset tag`). - .github/workflows/release.yml (changesets/action, bun) — needs an NPM_TOKEN secret to publish. - RELEASING.md documents the flow + the bun-specific reasoning. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UeVCwYURGVrm2TFtQmWB3s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces manual version-bumping/publishing with Changesets, adapted for bun (version with changesets, publish with
bun publishso workspace:^ → real version is resolved — verified via bun pm pack). Migrates server/cli inter-deps to workspace:^, adds config + scripts + release.yml + RELEASING.md. Needs an NPM_TOKEN secret for the publish step.🤖 Generated with Claude Code