Skip to content

Commit

Permalink
Update npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhilidali authored Jan 17, 2022
1 parent b15a8bf commit 31f5bc6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
name: Publish npm

on:
push:
branches: [master]
release:
types: [created]

jobs:
publish-npm:
Expand All @@ -16,7 +16,6 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 31f5bc6

Please sign in to comment.