Skip to content

Commit

Permalink
chore: add auto build before publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
anhvy committed Feb 24, 2020
1 parent 0702f3a commit a9b7697
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions npmpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: NPM Publish

on:
push:
branches:
- master

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

0 comments on commit a9b7697

Please sign in to comment.