feat: adopt changesets for versioning#45
Closed
RatulMaharaj wants to merge 1 commit into
Closed
Conversation
Changesets doesn't read deno.json, so private package.json stubs carry the versions it manages; deno task version bumps them and syncs each version into deno.json via scripts/sync-versions.ts. All three packages version in lockstep (fixed group). version.yml opens a "Version Packages" PR on main; merging it is the cue to cut a GitHub release, which publishes to JSR as before. Also adds CLAUDE.md with the changesets rule and the looped-docs writing-skill rule. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Member
Author
|
Closing without merging — we're staying on the simpler release flow instead. Two things surfaced while trying this locally:
The flow that shipped v0.2.0 already covers the goals: versions bump in one commit, the release event publishes JSR + immutable image tags together, and a CI guard fails the release if the tag disagrees with Worth salvaging from this branch separately: the 🤖 Generated with Claude Code |
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.
What
Sets up changesets for versioning, running entirely under Deno (
npm:@changesets/cli, no Node needed locally).Changesets only understands
package.json, so a small shim bridges it to Deno:package.jsonstubs per package (plus a root withworkspaces) exist solely for changesets to track and bump versions. JSR still publishes fromdeno.json.scripts/sync-versions.tscopies each bumped version into itsdeno.json.fixedgroup, matching the existing lockstep releases.deno task changeset(add a changeset) anddeno task version(bump + sync + changelogs).version.ymlrunschangesets/actionon pushes to main and opens a "Version Packages" PR; merging it is the cue to cut a GitHub release, which triggers the unchangedpublish-jsr.yml.Also adds
CLAUDE.md: always use changesets; always readskills/writing/looped-docs.mdbefore writing docs.Testing
Smoke-tested end to end locally: a test patch changeset bumped all three packages in lockstep across both
package.jsonanddeno.jsonand generated changelogs (then reverted).🤖 Generated with Claude Code