Skip to content

Commit

Permalink
chore: Fix npm publish GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
lym953 committed Nov 21, 2024
1 parent ebe3dfb commit b28d072
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Publish packages on NPM
on:
release:
types: [created]
push:
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -10,12 +11,11 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: "18.x"
- run: yarn config set npmAuthToken $NPM_PUBLISH_TOKEN
env:
NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- run: yarn
- run: yarn build
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

notify:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b28d072

Please sign in to comment.