ci: semver release versioning (port from toolchain)#19
Merged
Conversation
Port the toolchain's versioning scheme: replace the decimal tenths counter (v0.9 -> v1.0, no v0.10) with semver vMAJOR.MINOR.PATCH driven by [bump:*] markers in the commit subject (default minor on master, patch on release/*). Name-based baseline + release/* support enable back-ports; branch-creation and empty-range guards prevent spurious releases. Keeps the rolling 'latest' and the tree-archive publish. Adds commit-convention.yml (markers check, triggering on pull_request AND merge_group since master has a merge queue) and a README with the convention. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Ports the toolchain's versioning scheme to script-template.
What changed
release.ymlv0.9→v1.0, can't expressv0.10) with semvervMAJOR.MINOR.PATCH.[bump:major|minor|patch]in the commit subject; unmarked defaults to minor on master, patch onrelease/*.release/*trigger → back-ports scoped to a line.latestrelease and the tree-archive publish;latestonly moves on master.commit-convention.yml(new) — markers PR check. Triggers onpull_requestandmerge_groupfrom day one, because master has a merge queue — so a requiredmarkerscheck won't deadlock the queue (the lesson learned the hard way on the toolchain).README.md(new) — documents scaffolding, the toolchain pin, and the versioning/commit convention.Deliberately different from the toolchain
release/*branches. script-template releases on every push, so auto-opening a branch per minor would spawn one per push. Maintenance branches stay manual.Follow-ups (separate PRs)
v0.8.0(currently pinned to the deletedv0.9).markersa required check + arelease/*ruleset, after it's run once.