Skip to content

Commit 3edc8a2

Browse files
tianzhouclaude
andcommitted
fix: use correct npm registry dist-tag for bootstrap
The 'latest-11' dist-tag doesn't exist on the npm registry, causing a 404 error. Use 'latest' instead, which currently resolves to npm 11.x. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 42b5eec commit 3edc8a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ jobs:
6161
# Bootstrap without npm since Node 22.22.2 ships with broken npm (missing promise-retry)
6262
- name: Upgrade npm
6363
run: |
64-
npm_tarball=$(curl -fsSL https://registry.npmjs.org/npm/latest-11 | node -p "JSON.parse(require('fs').readFileSync(0,'utf8')).dist.tarball")
64+
npm_tarball=$(curl -fsSL https://registry.npmjs.org/npm/latest | node -p "JSON.parse(require('fs').readFileSync(0,'utf8')).dist.tarball")
6565
curl -fsSL "$npm_tarball" | tar xz -C /tmp
66-
node /tmp/package/bin/npm-cli.js install -g npm@11
66+
node /tmp/package/bin/npm-cli.js install -g npm@latest
6767
rm -rf /tmp/package
6868
echo "npm version: $(npm --version)"
6969

0 commit comments

Comments
 (0)