Skip to content

Bump version and tag automatically on merge to main - #125

Merged
matthewhorridge merged 1 commit into
mainfrom
ci/auto-version-bump
Jul 9, 2026
Merged

Bump version and tag automatically on merge to main#125
matthewhorridge merged 1 commit into
mainfrom
ci/auto-version-bump

Conversation

@matthewhorridge

Copy link
Copy Markdown
Contributor

Summary

  • Adds a Bump Version workflow that fires on each push to main (i.e. after every PR merge): bumps the version in pyproject.toml, commits, and tags vX.Y.Z
  • Bump size comes from the merged PR's labels: patch by default, release:minor / release:major for larger bumps, release:skip to skip releasing (labels created on the repo)
  • Self-trigger safe: pushes made with the default GITHUB_TOKEN don't trigger workflows, plus an actor guard
  • Starts the version at 0.1.0 (acknowledging the recent feature work); v0.1.0 will be tagged on the merge commit
  • README: documents the release flow, pinning pipx installs to a tag, and pipx reinstall for git-URL installs

This PR carries release:skip so the setup merge itself doesn't bump 0.1.0 to 0.1.1.

Test plan

  • Workflow YAML validated; bump script tested locally at all three levels from 0.1.0 (→ 0.1.1 / 0.2.0 / 1.0.0)
  • After merge: confirm the workflow run honors release:skip; the next regular PR merge will exercise the actual bump+tag path

🤖 Generated with Claude Code

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>
@matthewhorridge matthewhorridge added the release:skip Do not bump the version when this PR merges label Jul 9, 2026
@matthewhorridge
matthewhorridge merged commit fa59995 into main Jul 9, 2026
1 check passed
@matthewhorridge
matthewhorridge deleted the ci/auto-version-bump branch July 9, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:skip Do not bump the version when this PR merges

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant