Repository navigation
Release automatically on every merge to main, with semantic versioning - #359
Merged
Merged
Conversation
The Release workflow now runs when the Tests workflow passes on a push to main, instead of on a hand-pushed tag. It reuses that run as its gate, decides the next version, commits the bump to package.json, tags, and publishes the release. The version is decided by scripts/release-version.js (unit-tested): the largest bump any merged PR asks for, from its labels, a Conventional Commits title, or an added feature spec; patch by default. Merges that change nothing shipped, PRs labelled no-release, and [skip release] commits release nothing. A version set by hand in package.json is released as written, and a manual run can force the bump. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019erPahxSDm1JkM2ubkgjEw
Contributor
PR PreviewPreview deployment is ready! View Preview Last updated: 2026-11-20T13:41:16.374Z |
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.
Summary
Replaces the hand-pushed-tag release with one that runs on every merge to
main.workflow_runon Tests succeeding for a push tomain. That run is the gate (hygiene, lint, typecheck, unit, builds, bundle floor, Playwright, WebKit), so nothing is re-run.scripts/release-version.jstakes the largest bump any merged PR asks for:release:major/major/breaking,release:minor/minor/feature/enhancement,release:patch/patch/bug/fixfeat:→ minor,type!:/BREAKING CHANGE:→ major)specs/<n>-<name>/spec.md→ minorno-release/release:skip, or on[skip release].package.jsonversion ahead of the last tag is released as written; Run workflow can force patch/minor/major.mainhas moved on (the newer run releases both); thechore(release): vX.Y.Zcommit and tag are pushed atomically, so a race releases nothing rather than something wrong.Test plan
tests/unit/release-version.test.js(19 cases) — the decision rulesv0.3.1..v0.3.2→0.3.2manual; HEAD → no release)yarn typecheck,yarn lint,yarn hygiene,yarn test:unitall greenGenerated by Claude Code