Skip to content

Commit

Permalink
adding a publish job that runs on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
catdad authored Mar 5, 2021
1 parent f3608bd commit 23cef89
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,21 @@ jobs:
- run: node --version
- run: npx electron --version
- name: npm test

publish:
runs-on: ubuntu-latest
needs: [test]
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}



run: npx xvfb-maybe npm test

0 comments on commit 23cef89

Please sign in to comment.