Skip to content

chore(release): adopt changesets with bun + workspace:^ inter-deps - #82

Merged
octalpixel merged 1 commit into
mainfrom
feat/pipeline-integrity-s0-s7
Jun 25, 2026
Merged

chore(release): adopt changesets with bun + workspace:^ inter-deps#82
octalpixel merged 1 commit into
mainfrom
feat/pipeline-integrity-s0-s7

Conversation

@octalpixel

Copy link
Copy Markdown
Contributor

Replaces manual version-bumping/publishing with Changesets, adapted for bun (version with changesets, publish with bun publish so 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

… 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
@octalpixel
octalpixel merged commit 7cac925 into main Jun 25, 2026
1 check passed
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