Skip to content

ci: fix Publish workflow npm upgrade (Corepack)#23

Merged
proxymesh merged 1 commit intomainfrom
ci/fix-publish-npm-corepack
Apr 6, 2026
Merged

ci: fix Publish workflow npm upgrade (Corepack)#23
proxymesh merged 1 commit intomainfrom
ci/fix-publish-npm-corepack

Conversation

@proxymeshai
Copy link
Copy Markdown
Collaborator

Fixes failed Upgrade npm for trusted publishing (OIDC) step: npm install -g npm errored with Cannot find module 'promise-retry' on the bundled npm (Node 22.22.x on ubuntu-latest).

  • Activate npm >=11.5.1 via corepack enable and corepack prepare npm@11.5.1 --activate instead of global npm self-upgrade.
  • Remove check-latest: true on setup-node so publish matches proxy integration tests and avoids pulling the newest 22.x patch by default.

After merge, re-run the failed Publish workflow or trigger workflow_dispatch to verify.

Made with Cursor

Global npm install -g failed on Node 22.22.x (MODULE_NOT_FOUND: promise-retry in
@npmcli/arborist). Use corepack prepare instead of upgrading through the broken
bundled npm. Drop check-latest on setup-node to match integration tests and
avoid bleeding-edge toolchains.

Made-with: Cursor
@proxymesh proxymesh merged commit cdc4860 into main Apr 6, 2026
1 check passed
@proxymesh proxymesh deleted the ci/fix-publish-npm-corepack branch April 6, 2026 17:48
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.

2 participants