Skip to content

Commit f1efa67

Browse files
authored
ci: pin npm 11.15.0 for stage publish command (#235)
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.
1 parent fb2b3b2 commit f1efa67

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/sdk_publish_mistralai_azure_sdk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ jobs:
5151
fi
5252
5353
echo "Staging under dist-tag: $TAG"
54-
npm stage publish --tag "$TAG" --access public --provenance
54+
npx -y -p npm@11.15.0 npm stage publish --tag "$TAG" --access public --provenance

.github/workflows/sdk_publish_mistralai_gcp_sdk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ jobs:
5151
fi
5252
5353
echo "Staging under dist-tag: $TAG"
54-
npm stage publish --tag "$TAG" --access public --provenance
54+
npx -y -p npm@11.15.0 npm stage publish --tag "$TAG" --access public --provenance

.github/workflows/sdk_publish_mistralai_sdk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ jobs:
6161
fi
6262
6363
echo "Staging under dist-tag: $TAG"
64-
npm stage publish --tag "$TAG" --access public --provenance
64+
npx -y -p npm@11.15.0 npm stage publish --tag "$TAG" --access public --provenance

0 commit comments

Comments
 (0)