Skip to content

Commit

Permalink
Merge pull request #18 from juan-rsk/master
Browse files Browse the repository at this point in the history
GitHub Action to push package to npmjs.com
  • Loading branch information
pmprete authored May 11, 2021
2 parents 24a8f7e + 6cb8562 commit de5b440
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pushToNpmjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Push to npmjs.com
on:
pull_request:
branches:
- 'master'
types: [closed]

jobs:
pushing_to_npmjs:

if: github.event.pull_request.merged == true

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Push package to npmjs.com
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit de5b440

Please sign in to comment.