Skip to content

Commit ed09e94

Browse files
authored
test
1 parent 8e188b4 commit ed09e94

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
node-version: '18.x'
3333
registry-url: 'https://registry.npmjs.org'
3434

35+
# Configure npm for Trusted Publishers
36+
- run: |
37+
npm config set provenance true
38+
npm config delete //registry.npmjs.org/:_authToken || true
39+
3540
# npm ci命令类似于 npm install 但它旨在用于自动化环境,如测试平台,持续集成和部署
3641
# 可以帮助捕获由大多数 npm 用户的增量安装的本地环境引起的错误或不一致
3742
- run: pnpm install

0 commit comments

Comments
 (0)