Add PyPI release process - #4
Merged
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
Autofix Details
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Stale tagged commits can publish
- The release workflow now requires the tagged commit SHA to exactly match
origin/mainHEAD, preventing older ancestor commits from being published under the same version.
- The release workflow now requires the tagged commit SHA to exactly match
Or push these changes by commenting:
@cursor push 40bc495372
Preview (40bc495372)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -37,7 +37,7 @@
version=$(uv run --no-project --python 3.12 python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')
test "$GITHUB_REF_NAME" = "v$version"
git fetch origin main
- git merge-base --is-ancestor "$GITHUB_SHA" origin/main
+ test "$GITHUB_SHA" = "$(git rev-parse origin/main)"
- run: uv sync --locked --dev
- run: uv run ruff format --check .
- run: uv run ruff check .You can send follow-ups to the cloud agent here.
Contributor
Author
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
1 issue from previous review remains unresolved.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit db5729d. Configure here.
Contributor
Author
|
Fixed the BugBot finding in 8d75f78: release tags must now point exactly at the current |
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
validation
uv run ruff format --check .uv run ruff check .uv run ty checkuv run pytest(13 passed)uv builduv publish --dry-run dist/*actionlint .github/workflows/*.ymlNote
Medium Risk
Touches production publishing and release governance; mistakes could publish wrong versions, though tag/version/main checks and trusted publishing reduce exposure.
Overview
Adds an automated release pipeline triggered by
v*tags onmain, publishing harbor-hypeman to PyPI via GitHub OIDC (no API tokens) and creating a matching GitHub release with built artifacts.The new Release workflow validates semver tags, ensures the tag matches
pyproject.tomland points atorigin/main, runs the same quality gates as CI, thenuv publishwith trusted publishing andgh release create.Also introduces a release agent skill documenting version bumps, PR prep, tagging, and post-publish verification; an initial CHANGELOG (including 0.1.0); and Repository / Changelog URLs in
pyproject.toml.Reviewed by Cursor Bugbot for commit 8d75f78. Bugbot is set up for automated code reviews on this repo. Configure here.