We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 692f2ec commit 3537421Copy full SHA for 3537421
.github/workflows/provenance.yml
@@ -166,7 +166,12 @@ jobs:
166
167
- uses: SocketDev/socket-registry/.github/actions/install@6096b06b1790f411714c89c40f72aade2eeaab7c # main
168
169
- - run: npm install -g npm@11.12.1
+ - name: Upgrade npm for trusted publishing
170
+ run: |
171
+ # Avoid npm self-upgrade (corrupts deps mid-install on Node 22).
172
+ NPM_PREFIX="$(node -p 'process.config.variables.node_prefix')"
173
+ curl -sL https://registry.npmjs.org/npm/-/npm-11.12.1.tgz | tar xz -C "$NPM_PREFIX/lib/node_modules/npm" --strip-components=1
174
+ echo "npm version: $(npm --version)"
175
176
# Get versions for lock-stepped and independent packages.
177
- name: Get versions
0 commit comments