Skip to content

Commit 691ec2e

Browse files
committed
fix: clean npm publish auth, remove interfering token
1 parent 7704c85 commit 691ec2e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ jobs:
3636
version: 9
3737
# 安装依赖
3838
- run: pnpm install
39-
env:
40-
NODE_AUTH_TOKEN: ${{ secrets.RELEASE }}
4139
if: ${{ steps.release.outputs.release_created }}
4240
# 安装前端依赖并构建
4341
- run: cd frontend && pnpm install && pnpm build
@@ -46,9 +44,7 @@ jobs:
4644
- run: pnpm run prepublishOnly
4745
if: ${{ steps.release.outputs.release_created }}
4846
# 发布到 npm
49-
- run: |
50-
npm config set //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
51-
npm publish --access public
47+
- run: pnpm publish --access public --no-git-checks --//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
5248
env:
5349
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5450
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)