Skip to content

fix: Simplify auto-tag to tag-only#70

Merged
nille merged 1 commit intomainfrom
fix/version-bump-tag-only
Apr 15, 2026
Merged

fix: Simplify auto-tag to tag-only#70
nille merged 1 commit intomainfrom
fix/version-bump-tag-only

Conversation

@nille
Copy link
Copy Markdown
Owner

@nille nille commented Apr 15, 2026

Summary

  • Reworked version-bump workflow to tag-only (no commit push to main)
  • Reads __version__ from shipkit/__init__.py, creates v{version} tag if it doesn't exist
  • Works within branch protection (tags don't need status checks)
  • Deleted dangling v0.2.0 tag from the failed previous attempt

How it works

  1. PR bumps __version__ in shipkit/__init__.py (manual, part of the PR)
  2. PR merges to main
  3. Action reads version, creates git tag v0.1.14 if it doesn't already exist
  4. If version wasn't bumped, tag already exists, action is a no-op

Test plan

  • CI passes
  • Merge and verify tag v0.1.13 gets created

Branch protection blocks direct pushes to main. Simplified the workflow
to only create a git tag from the version in __init__.py. Version bumps
are done manually in PRs; CI auto-tags on merge if the version changed.
@nille nille merged commit c39cabf into main Apr 15, 2026
4 checks passed
@nille nille deleted the fix/version-bump-tag-only branch April 15, 2026 10:01
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