Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerodLee authored Oct 17, 2024
1 parent b5c7193 commit cbe814d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
run: npm run build # 假设你在 package.json 中定义了 "build" 脚本

# Step 5: 发布到 npm
- name: Create .npmrc for authentication
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
cat ~/.npmrc # 输出内容以检查是否正确创建
- name: Check npm authentication
run: echo "NODE_AUTH_TOKEN=${{ secrets.NPM_TOKEN }}"

Expand Down

0 comments on commit cbe814d

Please sign in to comment.