Skip to content

Commit 82f2246

Browse files
committed
fix: bypass broken pre-installed npm by downloading tarball directly
1 parent 283be43 commit 82f2246

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ jobs:
2727
node-version: '22'
2828

2929
- name: Update npm for OIDC trusted publishing
30-
run: npm install -g npm@11
30+
run: |
31+
curl -fsSL https://registry.npmjs.org/npm/-/npm-11.3.0.tgz -o /tmp/npm.tgz
32+
npm_root="$(dirname "$(dirname "$(which npm)")")/lib/node_modules/npm"
33+
tar -xzf /tmp/npm.tgz -C /tmp
34+
rm -rf "$npm_root"
35+
mv /tmp/package "$npm_root"
36+
npm --version
3137
3238
- name: Install dependencies
3339
run: bun install

0 commit comments

Comments
 (0)