Skip to content

Commit

Permalink
Publish NPM package on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
aarranz committed May 14, 2021
1 parent 94e689c commit e824c3f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ name: Tests

on:

create:

push:
branches:
- develop

pull_request:
branches:
- develop
Expand Down Expand Up @@ -47,3 +50,19 @@ jobs:
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true

deploy:

needs:
- node-unit-tests
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
registry-url: 'https://registry.npmjs.org'
- name: Publish NPM 📦
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.eslintrc
.eslintrc-mocha
test

0 comments on commit e824c3f

Please sign in to comment.