Skip to content

fix(release): check the tag against the branch tip, not the run's checkout - #141

Merged
taraxvoid merged 1 commit into
mainfrom
worktree-release-publish-race
Oct 12, 2026
Merged

taraxvoid merged 1 commit into
mainfrom
worktree-release-publish-race

Conversation

@taraxvoid

Copy link
Copy Markdown
Owner

Why 0.12.2 never reached npm:

  1. Run 38204136468 (push of feat!: run license-checker-rseidelsohn in check-licenses #130, f84a0f6) was in flight when release PR chore(main): release 0.12.2 #137 merged (56239c2).
  2. release-please reads the branch through the API, so that run created v0.12.2 on 56239c2 and set release_created=true.
  3. The publish job checked git merge-base --is-ancestor v0.12.2 HEAD, but HEAD was the run's own checkout (f84a0f6), so it failed with "Tag v0.12.2 is not on branch main".
  4. chore(main): release 0.12.2 #137's own run (38204156854) found v0.12.2 already released, so release_created was false and publish was skipped.

Fix: compare the tag against refs/remotes/origin/<branch>, which the job's fetch-depth: 0 checkout fetches after release-please has finished. This keeps the same guarantee (the tag is on this channel's branch) and works no matter which push's run creates the release.

0.12.3 replaced 0.12.2 on npm, so I'm not republishing 0.12.2.

🤖 Generated with Claude Code

…ckout

release-please tags the branch as it is when it runs. When the 0.12.2
release PR merged while #130's run was in flight, that run created v0.12.2
on the release commit, but the publish job compared it to HEAD (#130's own
commit), so it refused to publish. The release PR's own run then found the
release already created and skipped publishing, so 0.12.2 never reached npm.
Check ancestry against origin/<branch> instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@taraxvoid
taraxvoid merged commit 9dad79b into main Oct 12, 2026
2 checks passed
@taraxvoid
taraxvoid deleted the worktree-release-publish-race branch October 12, 2026 04:53
taraxvoid pushed a commit that referenced this pull request Oct 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.12.4](v0.12.3...v0.12.4)
(2026-10-12)


### Bug Fixes

* make the @playwright/test peer optional
([#142](#142))
([a40fe21](a40fe21))
* **release:** check the tag against the branch tip, not the run's
checkout ([#141](#141))
([9dad79b](9dad79b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: ravenflight-releases[bot] <330165707+ravenflight-releases[bot]@users.noreply.github.com>
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