Skip to content

Commit

Permalink
Adds GitHub Action for release (minor)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Feb 21, 2020
1 parent a50c2ba commit 323a37d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build, Test, and Publish on release
on:
release:
types: [published]
branches: [master]
jobs:
build:
name: Build, test and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 323a37d

Please sign in to comment.