fix: retry remote git tag verification in publish-alpha workflow - #88
Merged
Conversation
- Add retry/poll loop to Verify git tags on remote step (up to 5 min, 10-15s sleep between attempts) matching existing dist-tag retry pattern. - Make Push git tags step idempotent: check remote before pushing, skip existing matching tags, fail on SHA mismatch, create local tag if missing. - Keep npm dist-tag verification, publish step, and server exclusion unchanged.
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.
Summary
The alpha.4 publish succeeded for all packages but the workflow failed on the
Verify git tags on remotestep due to a propagation race (tags pushed viagit push --tagsweren't immediately visible on the remote). This patch adds retry logic and idempotent tag pushing.Changes
.github/workflows/publish-alpha.yml(only file changed):Verify git tags on remote — Now retries with a poll loop (up to 25 attempts, 10-15s sleep between tries, ~5 min total) matching the existing npm dist-tag verification retry pattern. Prints tag name and attempt number on each try.
Push git tags — Made idempotent: checks remote before pushing, skips tags that already exist at the same SHA, fails if a remote tag points to a different commit, creates a local tag from HEAD if
changeset publishdidn't create one.The
Publish Alpha,Set alpha dist-tags, andVerify alpha dist-tagssteps are unchanged.Validation