| name | release |
| description | Bump version, commit, push, and create a GitHub release (triggers PyPI publish) |
Release
Create a new release: bump the version in pyproject.toml, commit, push, and create a GitHub release which triggers the PyPI publish workflow.
Instructions
- Read the current version from
pyproject.toml
- Parse the version as
major.minor.patch
- Ask the user which type of version bump they want using AskUserQuestion:
- Patch (x.y.Z) - Bug fixes, small changes
- Minor (x.Y.0) - New features, backwards compatible
- Major (X.0.0) - Breaking changes
- Calculate the new version based on their choice
- Update the version in
pyproject.toml
- Report the change (e.g., "Version: 0.2.0 → 0.3.0")
- Commit with message:
Bump version to {new_version}
- Push to the current branch
- Create a GitHub release:
gh release create v{new_version} --title "v{new_version}" --generate-notes
- Report the release URL to the user
Notes
- The GitHub release triggers
.github/workflows/publish-pypi.yml which publishes to PyPI via trusted publishing
--generate-notes auto-generates release notes from PRs and commits since the last tag
- The user must be on
main (or their release branch) and have gh authenticated