Skip to content

Commit fbe5ab3

Browse files
authored
Fix publish workflow by using setup-node bundled npm
1 parent 952026b commit fbe5ab3

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ jobs:
3131
node-version: '24'
3232
registry-url: 'https://registry.npmjs.org'
3333

34-
# 确保使用最新版本的 npm 以支持 Trusted Publishing
35-
- name: Update npm
36-
run: npm install -g npm@latest
37-
3834
- name: Install dependencies
3935
run: pnpm install
4036

@@ -47,4 +43,4 @@ jobs:
4743
# 使用 OIDC Trusted Publishing 发布,无需 token
4844
# 在 npmjs.com 上配置 Trusted Publisher 后,npm 会自动使用 OIDC 认证
4945
- name: Publish to npm
50-
run: npm publish --access public --provenance=false
46+
run: npm publish --access public

0 commit comments

Comments
 (0)