Skip to content

feat(release): run the shape check and record the release snapshot in bun run release - #4301

Merged
mstomar125 merged 2 commits into
mainfrom
issue-4294-release-shape
Nov 18, 2026
Merged

mstomar125 merged 2 commits into
mainfrom
issue-4294-release-shape

Conversation

@mstomar125

@mstomar125 mstomar125 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Refs #4294

bun run release <version> now runs, via the extracted runReleaseSteps: shape:check (fail closed) -> perf benchmarks -> shape:release <version> (snapshots/.json; an equal existing snapshot is reused on rerun) -> version bump with the snapshot staged in the same commit and push -> release and tag. A suffixed pre-release gets the check but no snapshot. No new class, decision field or skip flag. AGENTS.md updated.

Tests: scripts/release.test.ts (17 new, each mutation-checked, including order swaps and a dropped early return). Not done: a real release, and a real shape:check/shape:release run (slot busy). The existing refusals (uncommitted changes, branch, HEAD == origin/main) stay in prepareVersionBump, not moved to a preflight.

🤖 Generated with Claude Code

mstomar125 and others added 2 commits November 18, 2026 11:21
… bun run release

shape:check runs before anything else and refuses the release on an
unclassified difference; shape:release <version> then writes the release's
snapshot, which is staged with the version bump so it reaches origin/main
before the tag. Pre-release versions with a suffix get the check only.

Refs #4294

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@mstomar125
mstomar125 force-pushed the issue-4294-release-shape branch from 1f4cd15 to 77aca30 Compare November 18, 2026 10:21
@mstomar125
mstomar125 merged commit 29bf33f into main Nov 18, 2026
@mstomar125
mstomar125 deleted the issue-4294-release-shape branch November 18, 2026 10:22
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