Skip to content

Release automatically on every merge to main, with semantic versioning - #359

Merged
IanMayo merged 1 commit into
mainfrom
claude/gallant-planck-feyk3w
Nov 20, 2026
Merged

IanMayo merged 1 commit into
mainfrom
claude/gallant-planck-feyk3w

Conversation

@IanMayo

@IanMayo IanMayo commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Replaces the hand-pushed-tag release with one that runs on every merge to main.

  • Trigger: workflow_run on Tests succeeding for a push to main. That run is the gate (hygiene, lint, typecheck, unit, builds, bundle floor, Playwright, WebKit), so nothing is re-run.
  • Version: scripts/release-version.js takes the largest bump any merged PR asks for:
    • labels — release:major/major/breaking, release:minor/minor/feature/enhancement, release:patch/patch/bug/fix
    • else a Conventional Commits title (feat: → minor, type!: / BREAKING CHANGE: → major)
    • else a PR that adds specs/<n>-<name>/spec.md → minor
    • else patch
  • No release when nothing that ships changed (docs/tests/CI only), when every PR is labelled no-release/release:skip, or on [skip release].
  • Overrides: a package.json version ahead of the last tag is released as written; Run workflow can force patch/minor/major.
  • Safety: stands down if main has moved on (the newer run releases both); the chore(release): vX.Y.Z commit and tag are pushed atomically, so a race releases nothing rather than something wrong.
  • Release notes now list merged PRs by title.

Test plan

  • tests/unit/release-version.test.js (19 cases) — the decision rules
  • Ran evidence + decision against real history (v0.3.1..v0.3.2 → 0.3.2 manual; HEAD → no release)
  • Dry-ran the notes and README generation steps locally
  • yarn typecheck, yarn lint, yarn hygiene, yarn test:unit all green
  • First real run after merge — this PR changes nothing shipped, so its own merge should report "no release"

Generated by Claude Code

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
@github-actions

Copy link
Copy Markdown
Contributor

PR Preview

Preview deployment is ready! View Preview

Last updated: 2026-11-20T13:41:16.374Z

@IanMayo
IanMayo merged commit 84cb03b into main Nov 20, 2026
6 checks passed
@IanMayo
IanMayo deleted the claude/gallant-planck-feyk3w branch November 20, 2026 13:47
github-actions Bot added a commit that referenced this pull request Nov 20, 2026
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.

2 participants