Skip to content

Commit

Permalink
chore: daily development
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Feb 23, 2025
1 parent f7d1973 commit f4b1cf2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish-swc-plugin-canyon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ jobs:
run: |
rustup target add wasm32-wasip1
- name: Check NODE_AUTH_TOKEN
run: echo "NODE_AUTH_TOKEN=${{ secrets.NODE_AUTH_TOKEN }}" # 不建议直接打印 token
- name: Login to npm
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NODE_AUTH_TOKEN }}" > ~/.npmrc
- name: Publish to npm
run: pnpm --filter=swc-plugin-canyon publish -f --no-git-checks --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} # 确保这里引用了 secret
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

0 comments on commit f4b1cf2

Please sign in to comment.