fix: use npx npm@latest for OIDC trusted publishing (#4724)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Saket Aryan
2026-04-06 17:22:00 +05:30
committed by GitHub
parent 3565404eef
commit 07f0d4f1e0
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ jobs:
run: |
if [ "${{ github.event.release.prerelease }}" = "true" ]; then
PREID=$(node -p "require('./package.json').version.split('-')[1].split('.')[0]")
npm publish --provenance --access public --tag "$PREID"
npx npm@latest publish --provenance --access public --tag "$PREID"
else
npm publish --provenance --access public
npx npm@latest publish --provenance --access public
fi