Skip to content

ci: pin npm 11.15.0 for stage publish command#235

Merged
Nelson-PROIA merged 1 commit into
mainfrom
ci/fix-npm-stage-publish-version
May 22, 2026
Merged

ci: pin npm 11.15.0 for stage publish command#235
Nelson-PROIA merged 1 commit into
mainfrom
ci/fix-npm-stage-publish-version

Conversation

@Nelson-PROIA

Copy link
Copy Markdown
Contributor

Summary

The npm stage publish command requires npm 11.15.0+ but Node 24's bundled npm is 11.13.0. Calling npm stage publish directly fails with Unknown command: \"stage\".

Fix

Wrap the publish call with npx -y -p npm@11.15.0 ..., matching the existing pattern already used in the install step.

Applied to all 3 publish workflows:

  • sdk_publish_mistralai_sdk.yaml
  • sdk_publish_mistralai_azure_sdk.yaml
  • sdk_publish_mistralai_gcp_sdk.yaml

Validation

Reproduced the failure live, the npm CLI explicitly reports Unknown command: \"stage\" when 11.13.0 is invoked. Pinning to 11.15.0 via npx resolves it.

The npm stage publish command requires npm 11.15.0+. Node 24's bundled
npm is 11.13.0, which doesn't have the command. The install step
already uses the npx -y -p npm@11.15.0 pattern; apply the same to the
publish step.

@andreaonofrei01 andreaonofrei01 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing

@Nelson-PROIA
Nelson-PROIA merged commit f1efa67 into main May 22, 2026
3 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.

2 participants