Skip to content

Commit 9b1db18

Browse files
committed
ci: 修复 npm-publish 工作流 yarn install 缺少 NODE_AUTH_TOKEN
- setup-node 生成的 .npmrc 引用 ${NODE_AUTH_TOKEN},install 步骤未定义该变量导致 yarn 报错 - 提升为 job 级 env,并重新触发 1.7.4 发布
1 parent fd656a1 commit 9b1db18

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/NPM_PUBLISH_VERSION.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ lerna version [bump]
1010

1111
1.7.4
1212

13+
<!-- retry: 工作流补充 NODE_AUTH_TOKEN 后重新触发 -->
14+
15+

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ jobs:
3636
env: # More info about the environment variables in the README
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
3838
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
39+
# setup-node 生成的 .npmrc 引用 ${NODE_AUTH_TOKEN},yarn install 步骤也需要该变量存在
40+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)