Skip to content

feat: tag commit with version after PyPI publish#34

Merged
ghinks merged 1 commit intomainfrom
feat/tag-version-on-publish
Mar 6, 2026
Merged

feat: tag commit with version after PyPI publish#34
ghinks merged 1 commit intomainfrom
feat/tag-version-on-publish

Conversation

@ghinks
Copy link
Owner

@ghinks ghinks commented Mar 6, 2026

Summary

  • Adds a Tag Version step to pypi_publish.yml that runs after the version bump commit is pushed
  • Creates and pushes a git tag (e.g. v0.0.8) so each published release is traceable in git history

Test plan

  • Trigger the workflow via workflow_dispatch against TestPyPI
  • Confirm a tag matching the bumped version (e.g. v0.0.x) appears in the repository after the run

🤖 Generated with Claude Code

Creates and pushes a git tag (e.g. v0.0.8) after the version bump
commit so each published release is traceable in git history.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ghinks ghinks merged commit 3223353 into main Mar 6, 2026
1 check passed
@ghinks ghinks deleted the feat/tag-version-on-publish branch March 6, 2026 18:42
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7e8e68ea3f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

git commit -m "chore: bump version to ${{ steps.bump.outputs.version }} [skip ci]"
git push

- name: Tag Version

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restrict version tag creation to production publishes

This step runs unconditionally, so a workflow_dispatch run with inputs.target == 'test' will still create and push a v... git tag even though only TestPyPI was used. That makes test-only publishes look like official releases in git history and can interfere with downstream release practices that rely on tags representing production artifacts; the tag step should be gated with the same production condition used by Publish to PyPI.

Useful? React with 👍 / 👎.

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