Skip to content

Commit e9400ce

Browse files
tianzhouclaude
andcommitted
fix: remove npm self-upgrade step from publish workflow
Node 22.22.2's bundled npm is missing promise-retry, causing npm install -g npm@latest to fail. The upgrade is unnecessary since actions/setup-node@v4 provides a working npm. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0623307 commit e9400ce

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ jobs:
121121
node-version: "22"
122122
cache: "pnpm"
123123

124-
- name: Upgrade npm
125-
run: |
126-
npm install -g npm@latest
127-
echo "npm version: $(npm --version)"
128-
129124
- name: Install dependencies
130125
run: pnpm install --frozen-lockfile
131126

0 commit comments

Comments
 (0)