Skip to content

fix: retry remote git tag verification in publish-alpha workflow - #88

Merged
mahyarmlk merged 1 commit into
mainfrom
fix/publish-alpha-tag-retry
Jun 26, 2026
Merged

fix: retry remote git tag verification in publish-alpha workflow#88
mahyarmlk merged 1 commit into
mainfrom
fix/publish-alpha-tag-retry

Conversation

@mahyarmlk

Copy link
Copy Markdown
Collaborator

Summary

The alpha.4 publish succeeded for all packages but the workflow failed on the Verify git tags on remote step due to a propagation race (tags pushed via git push --tags weren't immediately visible on the remote). This patch adds retry logic and idempotent tag pushing.

Changes

.github/workflows/publish-alpha.yml (only file changed):

  1. 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.

  2. 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 publish didn't create one.

  3. The Publish Alpha, Set alpha dist-tags, and Verify alpha dist-tags steps are unchanged.

Validation

  • pnpm test ✅
  • pnpm typecheck ✅
  • pnpm lint ✅
  • pnpm changeset status ✅ (no packages to bump)

- 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.
@mahyarmlk
mahyarmlk merged commit 31bb6cb into main Jun 26, 2026
1 check passed
@mahyarmlk
mahyarmlk deleted the fix/publish-alpha-tag-retry branch June 26, 2026 14:53
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