Skip to content

Commit 895cd00

Browse files
mauricekleineclaude
andcommitted
ci(cli-release): pin npm to stable 11.x for the provenance publish
`npm install -g npm@latest` pulled the pre-release npm 12.0.0-pre.2, whose provenance path can't resolve its bundled sigstore, so `npm publish --provenance` died with "Cannot find module 'sigstore'" (npm/cli#9722) and the 0.108.0 publish failed. Pin to npm@11 (still >= 11.5.1 for OIDC trusted publishing) so a pre-release can't leak into the release again. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1 parent 8ec02d5 commit 895cd00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/cli-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
FLUNCLE_CLI_VERSION: ${{ steps.version.outputs.version }}
9999
run: |
100100
set -euo pipefail
101-
npm install -g npm@latest # OIDC trusted publishing needs npm >= 11.5.1
101+
npm install -g npm@11 # stable 11.x (>= 11.5.1 for OIDC); avoids the broken pre-release npm 12.0.0-pre.2 that @latest pulled (missing sigstore, npm/cli#9722)
102102
bun run --cwd apps/cli build:npm
103103
cd apps/cli/dist-npm
104104
npm publish --provenance --access public

0 commit comments

Comments
 (0)