Non-prerelease promote failure#72
Closed
cursor[bot] wants to merge 1 commit into
Closed
Conversation
Check if version exists in npm before attempting dist-tag operation. When a non-prerelease is published directly, both 'published' and 'released' events fire simultaneously. The promote job would fail trying to tag a version that hasn't been published yet. Now it skips gracefully if the version doesn't exist.
Author
|
Cursor Agent can help with this pull request. Just |
Author
|
Automatically closed this PR because it was created by Bugbot autofix for #71, and that PR was closed. |
This was referenced Feb 22, 2026
This was referenced Feb 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bare minimum self-checks
mainPieces of flare
Finally
If you have any issues or need help please join the
#contributorschannel in the Lando slack and someone will gladly help you out!You can also check out the coder guide.
This PR fixes an issue where the
promoteworkflow job would fail on fresh non-prerelease publishes. Thepromotejob, triggered by thereleasedevent, often ran before thedeployjob had published the package to npm, causingnpm dist-tag addto error on a non-existent version.The change adds a check to ensure the package version exists on npm before attempting to add the
latestdist-tag. This prevents thepromotejob from failing prematurely and ensures it only proceeds when the package is available.