Skip to content

Commit

Permalink
Adds GitHub action for publish on release (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Apr 25, 2020
1 parent bc7d848 commit 36f72f9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
@@ -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: 14
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 36f72f9

Please sign in to comment.