Skip to content

0.3.0

Choose a tag to compare

@DavertMik DavertMik released this 13 Apr 19:28
ci: drop `npm install -g npm@latest` — fails under Node 22.22+

Run 24361722242 (v0.2.0 release) failed at the "Install latest npm"
step with a MODULE_NOT_FOUND error for `promise-retry` inside
@npmcli/arborist/lib/arborist/rebuild.js. Same bug hits main
codeceptjs/publish-beta.yml on the same Node 22.22.2 runner
(run 24115715943, 4.0.0-rc.12).

Root cause: a regression in how `npm install -g npm@latest` re-enters
arborist when the user's local project already has node_modules. The
step is cosmetic for us — Node 22 bundles npm 10.9+, and --provenance
has shipped since npm 9.5, so there's no functional reason to force a
global reinstall on every publish.

Fix: remove the step. If a future feature ever needs a newer npm,
pin to a specific known-good version (e.g. npm@11) rather than @latest.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>