Skip to content

Commit

Permalink
fix: add NODE_AUTH_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-cn committed Feb 22, 2024
1 parent 5f14108 commit b80c790
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
node-version: 16
- name: Install
run: npm install
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Build
run: npm run docs:build
- name: Deploy
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
release-type: node
package-name: onebots
# Checkout
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
# Setup node
- uses: actions/setup-node@v3
Expand All @@ -26,6 +26,8 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
# Install dependencies
- run: npm install
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
# Build output
- run: npm run build
Expand All @@ -34,4 +36,4 @@ jobs:
- run: npm run pub
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
if: ${{ steps.release.outputs.release_created }}
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
@icqqjs:registry=https://npm.pkg.github.com
always-auth=true

0 comments on commit b80c790

Please sign in to comment.