Skip to content

Commit

Permalink
调整配置
Browse files Browse the repository at this point in the history
  • Loading branch information
chenbimo committed Nov 28, 2024
1 parent a8333f2 commit 4be6f27
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,18 @@ on:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20

publish-npm:
needs: build
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm run r
- uses: pnpm/action-setup@v4
with:
version: 9
run_install: true
- run: pnpm run r
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 4be6f27

Please sign in to comment.