Skip to content

Commit

Permalink
build(action): change publish to trigger when a new release was created
Browse files Browse the repository at this point in the history
danprates committed Apr 1, 2023
1 parent fa1a500 commit 9a40d08
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Publish on NPM

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

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

0 comments on commit 9a40d08

Please sign in to comment.