Skip to content

fix(ci): retry npm view instead of fixed sleep in publish verification - #269

Merged
mobilemind merged 1 commit into
mainfrom
fix/publish-verify-retry
Sep 27, 2026
Merged

mobilemind merged 1 commit into
mainfrom
fix/publish-verify-retry

Conversation

@mobilemind

Copy link
Copy Markdown
Owner

What

The publish workflow's "Verify publication" step slept a fixed 30 seconds
then queried the registry once for the new version.

Why

For the 1.13.5 release, npm publish succeeded (npm info ok, provenance
signed and logged to Sigstore), but registry propagation took longer than
30 seconds. The single npm view call 404'd, and the workflow run showed
red even though the package had already published successfully — a false
alarm, not a real publish failure.

Fix

Replace the fixed sleep with a POSIX sh-compatible retry loop (up to 30
tries, 15s apart = 7.5 min ceiling), and bump the job timeout from 10 to
15 minutes to give the longer retry window room alongside the earlier
steps.

Verification

  • text2datauri@1.13.5 is confirmed live on the registry (npm view,
    and a direct curl to registry.npmjs.org returned 200).
  • Pre-push hooks passed: eslint, markdownlint, actionlint, yamllint,
    npm test (25/25), npm audit (0 vulnerabilities).

The verification step slept a fixed 30s then queried the registry once.
For 1.13.5, npm publish succeeded (npm info ok) but registry propagation
took longer than 30s, so the step 404'd and the workflow run showed
failure even though the package was published.

Replace the fixed sleep with a retry loop (POSIX sh, up to 30 tries /
15s apart = 7.5 min) and bump the job timeout to accommodate it.
@mobilemind
mobilemind merged commit 98bf705 into main Sep 27, 2026
7 checks passed
@mobilemind
mobilemind deleted the fix/publish-verify-retry branch September 27, 2026 04:49
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