Skip to content

fix(release): wait longer for npm to serve a newly published version - #50

Merged
roncodes merged 1 commit into
mainfrom
fix/verify-published-wait
Oct 8, 2026
Merged

roncodes merged 1 commit into
mainfrom
fix/verify-published-wait

Conversation

@roncodes

@roncodes roncodes commented Oct 8, 2026

Copy link
Copy Markdown
Member

Problem

The v2.1.0 release published to npm successfully, but its next step, "Verify registry checksum and clean consumers", failed.

  • The step asks npm for the new version's metadata.
  • npm kept returning 404, because a just-published version can take a few minutes to become available.
  • The script gave up after 6 attempts, 10 seconds apart (about 1 minute).
  • Because that step failed, the GitHub release and the GitHub Packages mirror were skipped.

Re-running the failed job recovers it. The publish step finds identical bytes already on npm and does not publish again, the existing tag already points at the same commit, and by then verification passes.

Change

scripts/verify-published.mjs now retries for about 11 minutes, backing off from 10 to 60 seconds between attempts. That fits inside the release job's 25-minute timeout. Nothing else changes.

This is a tooling-only change on main, not a release. It doesn't publish anything.

…sion

The post-publish check gave up after six attempts ten seconds apart. npm can
take longer than that to serve a version it has just accepted, which failed the
v2.1.0 release after a successful publish and skipped the GitHub release and
GitHub Packages mirror. It now backs off from 10 to 60 seconds for about
eleven minutes, inside the job's 25-minute limit.
@codecov

codecov Bot commented Oct 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (696c10c) to head (7b1b009).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #50   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines          860       860           
  Branches       143       143           
=========================================
  Hits           860       860           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@roncodes
roncodes merged commit 91d5660 into main Oct 8, 2026
44 checks passed
@roncodes
roncodes deleted the fix/verify-published-wait branch October 8, 2026 11:51
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