Skip to content

publish: don't abort tagging when the version was already committed - #47

Merged
dbose merged 1 commit into
mainfrom
fix-publish-tagging
Sep 27, 2026
Merged

dbose merged 1 commit into
mainfrom
fix-publish-tagging

Conversation

@dbose

@dbose dbose commented Sep 27, 2026

Copy link
Copy Markdown
Owner

When a release version is bumped via a merged PR (the normal flow), the working tree is clean by the time publish.sh reaches its commit step, so git commit -m "Release $VERSION" failed with 'nothing to commit' and, under set -e, aborted the script before git tag/git push --tags ran. That is why 0.6.10 published to PyPI but was never tagged.

Now the script commits the bump only when something is actually staged, tags the current commit either way, skips the tag if it already exists (a re-run after a partial publish), and pushes the tag explicitly so it lands even when the branch push is a no-op.

When a release version is bumped via a merged PR (the normal flow), the
working tree is clean by the time publish.sh reaches its commit step, so
`git commit -m "Release $VERSION"` failed with 'nothing to commit' and,
under `set -e`, aborted the script before `git tag`/`git push --tags` ran.
That is why 0.6.10 published to PyPI but was never tagged.

Now the script commits the bump only when something is actually staged,
tags the current commit either way, skips the tag if it already exists (a
re-run after a partial publish), and pushes the tag explicitly so it lands
even when the branch push is a no-op.
@dbose
dbose merged commit c54f3bf into main Sep 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant