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 May 15, 2020
1 parent c44772e commit 25982c0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 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: 10
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
7 changes: 0 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,3 @@ node_js:
- "10"
after_success:
- npm run coveralls
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_TOKEN
on:
tags: true
branch: master

0 comments on commit 25982c0

Please sign in to comment.