Skip to content

Commit

Permalink
ci: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MagnumGoYB committed Mar 15, 2024
1 parent c57f6b4 commit 51966d0
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,17 @@ on:
- v*

jobs:
build:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.17
registry-url: https://registry.npmjs.org/
- run: npm install -g pnpm
- run: pnpm install
- run: pnpm run build

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.17
registry-url: https://registry.npmjs.org/
- run: npm publish
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 51966d0

Please sign in to comment.