Skip to content

fix(bump): push the branch and release tag atomically - #41

Merged
lewisjared merged 2 commits into
mainfrom
fix/atomic-bump-push
Sep 23, 2026
Merged

lewisjared merged 2 commits into
mainfrom
fix/atomic-bump-push

Conversation

@lewisjared

Copy link
Copy Markdown
Contributor

Fixes the bump pushing the branch and the release tag separately. It now runs git push --atomic origin HEAD refs/tags/<tag>, so both refs land together or not at all.

With dynamic versioning, CI triggered by the branch push could check out before the tag existed, so hatch-vcs derived a dev version (1.4.28.devN+g…) for the release commit. core-api hits this since it skips tests for changelog-only commits and starts building within a minute (climate-resource/core-api#76).

  • Only the new tag is pushed now, not every local tag.
  • The pre-release commit still uses a plain git push, since it has no tag.

Separate pushes let CI triggered by the branch push check out before the tag lands, so hatch-vcs builds a dev version.
@lewisjared
lewisjared marked this pull request as ready for review September 23, 2026 01:28
@lewisjared
lewisjared merged commit c4a5436 into main Sep 23, 2026
1 check passed
@lewisjared
lewisjared deleted the fix/atomic-bump-push branch September 29, 2026 01:15
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