Repository navigation
Wait for npm registry propagation after publishing - #54
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 037b994d2b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| await wait(Math.min(intervalMs, remaining)); | ||
| } while (now() < deadline); |
There was a problem hiding this comment.
Check the registry after the final wait
When every lookup before the deadline misses but the version becomes visible during the final shortened sleep, this condition exits the loop without another lookup. With the production defaults, the last fast lookup occurs around 4:50, followed by a 10-second wait that can never observe propagation, so the release workflow can falsely fail verification even though npm exposed the expected tarball within the documented five-minute window; perform a final lookup at the deadline or avoid the unobserved final sleep.
Useful? React with 👍 / 👎.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
npm accepted the initial 0.1.0 publication and warned that processing could take a few minutes. The workflow checked metadata immediately, failed because the version was not yet visible, and skipped GitHub Release creation. Retrying the original run after propagation completed successfully and skipped republishing the identical tarball.
Post-publication verification now polls every 10 seconds for up to 5 minutes (plus at most 30 seconds for an in-flight request). It retries only a missing version; conflicting tarballs, newer versions, package identity mismatches and registry errors still fail immediately. The pre-publication check stays immediate. The release guide documents the bounded wait.
Validation: typecheck and all 18 release-tooling/packed-consumer tests passed, including delayed visibility, timeout, immediate success, conflicting/newer versions and lookup failures. Full PR CI is pending.
This PR does not change the package version or publish another release.