Add label-driven auto-release workflow#25
Merged
Conversation
Closes #19. On push to main, reads the merged PR's labels and tags + releases accordingly: release:skip exits, release:major/minor bump respectively, anything else patch-bumps. Pure bump logic lives in scripts/bump-version.js (TDD'd in test/unit/bump-version.test.js); the workflow YAML just plumbs PR labels and the latest tag into it. Precedence: skip > major > minor > patch. First run (no existing vX.Y.Z tag) seeds at v1.0.0. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
.github/workflows/release.yml: on push tomain, reads the merged PR's labels and tags + releases accordingly.release:skipexits,release:major/release:minorbump respectively, anything else patch-bumps. Precedence:skip > major > minor > patch.scripts/bump-version.js(12 unit tests intest/unit/bump-version.test.js, built TDD red→green per case). The workflow just plumbs PR labels and the latest git tag into it.release:major,release:minor,release:skip).docs/agents/release-labels.md.Closes #19.
Note on this PR's own label
The workflow goes live the moment this merges, so this PR's label determines the first auto-release. I've tagged it
release:minor(new feature, first run →v1.1.0). Swap torelease:skipif you'd rather seed manually, or leave default forv1.0.1.Test plan
npm test— 35/35 green (12 new for bump-version)python3 build.py --check— cleannode scripts/bump-version.js v1.2.3 release:minor,bug→v1.3.0release:skip(no tag) and a default-labelled PR (patch bump)🤖 Generated with Claude Code