Bump version and tag automatically on merge to main - #125
Merged
Conversation
Add a Bump Version workflow that runs after each merge to main: it bumps the version in pyproject.toml (patch by default; release:minor or release:major PR labels for larger bumps; release:skip to opt out), commits the bump, and tags the release vX.Y.Z. Pushes made with the default GITHUB_TOKEN do not trigger workflows, so the bump commit cannot re-trigger the job. Start the version at 0.1.0 and document the release flow and pipx pinning/reinstall in the README. Co-Authored-By: Claude Fable 5 <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.
Summary
Bump Versionworkflow that fires on each push tomain(i.e. after every PR merge): bumps the version inpyproject.toml, commits, and tagsvX.Y.Zrelease:minor/release:majorfor larger bumps,release:skipto skip releasing (labels created on the repo)GITHUB_TOKENdon't trigger workflows, plus an actor guardpipx reinstallfor git-URL installsThis PR carries
release:skipso the setup merge itself doesn't bump 0.1.0 to 0.1.1.Test plan
release:skip; the next regular PR merge will exercise the actual bump+tag path🤖 Generated with Claude Code