Repository navigation
ci: automate PyPI releases - #144
Conversation
Merging a fix or feat PR now opens a release PR, and merging that one tags the release and publishes to PyPI from the same workflow run. The registry check works out the version from the tag for those runs. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5bd6d83. Configure here.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
mahmoud-elmorabea
left a comment
There was a problem hiding this comment.
LGTM. Comments inline, none block the merge.
| run: python -m build | ||
|
|
||
| # A build that cannot see the tag gets a dev version, which must not ship. | ||
| - name: Check the built version matches the tag |
There was a problem hiding this comment.
A hand-made prerelease tag like v3.3.0-rc.1 builds as 3.3.0rc1, so this glob won't match and the build fails. Worth normalizing the tag before comparing if you still plan manual prereleases.
There was a problem hiding this comment.
Good catch. The check now rewrites the tag the same way Python does before comparing, so v3.3.0-rc.1 matches 3.3.0rc1. Fixed in 4a07d38.
| fetch-depth: 0 | ||
| ref: ${{ github.event.workflow_run.head_sha || github.sha }} | ||
|
|
||
| - name: Work out which version to look for |
There was a problem hiding this comment.
nit; release-please only sees conventional squash titles, and nothing lints them. A feat merged as "Add X" would silently miss the release PR. A PR title check could be a follow-up.
There was a problem hiding this comment.
Agreed. I left it out of this PR to keep it small, and a PR title check is a good follow-up.
| sha: ${{ steps.release.outputs.sha }} | ||
| steps: | ||
| - id: release | ||
| uses: googleapis/release-please-action@v5 |
There was a problem hiding this comment.
Can you confirm the repo allows Actions to create pull requests? I couldn't read that setting, so the first run after merge will show it.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

Releases are cut by hand today. This adds release-please, the same setup the Node SDK uses.
fix:orfeat:PR opens a release PR with the version bump and changelog.publish.ymlbecause PyPI trusted publishing is bound to that file.Hand made GitHub releases still publish as before. Main already holds an unreleased
feat:commit, so the first release PR will be for 3.3.0.🤖 Generated with Claude Code