Skip to content

Comments

Release workflow race#67

Closed
cursor[bot] wants to merge 1 commit intomainfrom
cursor/release-workflow-race-c9d5
Closed

Release workflow race#67
cursor[bot] wants to merge 1 commit intomainfrom
cursor/release-workflow-race-c9d5

Conversation

@cursor
Copy link

@cursor cursor bot commented Feb 20, 2026

Bare minimum self-checks

What do you think of a person who only does the bare minimum?

  • I've updated this PR with the latest code from main
  • I've done a cursory QA pass of my code locally
  • I've ensured all automated status check and tests pass
  • I've connected this PR to an issue

Pieces of flare

  • I've written a unit or functional test for my code
  • I've updated relevant documentation it my code changes it
  • I've updated this repo's README if my code changes it
  • I've updated this repo's CHANGELOG with my change unless its a trivial change (like updating a typo in the docs)

Finally

If you have any issues or need help please join the #contributors channel in the Lando slack and someone will gladly help you out!

You can also check out the coder guide.


This PR fixes a race condition where the promote job would fail during a fresh non-prerelease publication. Previously, the promote job would attempt to add the latest dist-tag before the deploy job had finished publishing the package to npm, causing an error.

The fix introduces a check to verify if the package version already exists on npm before attempting to add the latest dist-tag. This ensures that the promote job only acts on existing prereleases and avoids failing on new releases, preventing misleading workflow failures.


The promote job now checks if the package version exists on npm before attempting to add the dist-tag. This prevents failures when a fresh non-prerelease is published, which triggers both 'published' and 'released' events simultaneously. The lightweight promote job would previously race the deploy job and fail when trying to tag a not-yet-published version.
@cursor
Copy link
Author

cursor bot commented Feb 20, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Base automatically changed from feature/promote-edge-on-edit to main February 20, 2026 04:35
@cursor
Copy link
Author

cursor bot commented Feb 20, 2026

Automatically closed this PR because it was created by Bugbot autofix for #66, and that PR was closed.

@cursor cursor bot closed this Feb 20, 2026
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