We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6cf16c commit fa6e62bCopy full SHA for fa6e62b
1 file changed
.github/workflows/release.yml
@@ -7,6 +7,7 @@ on:
7
# 赋予 release-please-action 权限
8
permissions:
9
contents: write
10
+ id-token: write
11
pull-requests: write
12
jobs:
13
# 设置 release-please 任务
@@ -36,11 +37,14 @@ jobs:
36
37
# 复制插件列表到 package.json
38
- run: npm run cp
39
if: ${{ steps.release.outputs.release_created }}
40
+ # 更新 npm 到最新版本以支持 OIDC
41
+ - run: npm install -g npm@latest
42
+ if: ${{ steps.release.outputs.release_created }}
43
# 发布到 npm
- - run: npm run pub
44
+ - run: npm run pub --provenance
45
46
env:
47
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
48
# 同步npm包
49
- run: npm run sync
- if: ${{ steps.release.outputs.release_created }}
50
0 commit comments