Skip to content

Commit

Permalink
Add npm publish automation (#117)
Browse files Browse the repository at this point in the history
* build: creating release triggers NPM publish github action
  • Loading branch information
hanjukim authored Aug 18, 2021
1 parent 5a7ef60 commit e75356f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: NPM publish
on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm install
- run: npm test
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit e75356f

Please sign in to comment.