Skip to content

fix: wait for default npm installation visibility - #3

Merged
nstdata-dev merged 1 commit into
mainfrom
fix/npm-install-visibility
Nov 3, 2026
Merged

nstdata-dev merged 1 commit into
mainfrom
fix/npm-install-visibility

Conversation

@nstdata-dev

Copy link
Copy Markdown
Contributor

Summary

A newly published version can be visible through its version endpoint while a default npm install still resolves the previous release. Retry older default-install resolutions in fresh projects and caches, with at most seven checks and a 30-second wait between attempts.

Run npm publish only once. Stop on installation errors, unexpected versions or archive-integrity mismatches, and write the success summary only after the installed package passes verification. This changes release tooling and tests; the published package contents and version remain unchanged.

Validation

  • npm run typecheck, npm test and npm run check:package passed in all four CI jobs: Node.js 22.18.0, 22.x, 24.0.0 and 24.x.
  • Full release-command regressions cover delayed installation visibility, the attempt limit, isolated projects/caches, command errors, unexpected versions and integrity mismatches. Each scenario asserts that publication occurs once.
  • The packed archive is byte-identical to the published 1.1.0 archive.

Retry stale default installs in fresh directories and caches without repeating publication. Stop on installation errors, unexpected versions or mismatched archive integrity.
@nstdata-dev
nstdata-dev merged commit 34fcaa9 into main Nov 3, 2026
8 checks passed
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