Skip to content

Commit

Permalink
Create on-push-publish-to-npm.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasMaji authored Mar 17, 2021
1 parent 10ac1a3 commit 444a39a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/on-push-publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: on-push-publish-to-npm
on:
push:
branches:
- master # Change this if not your default branch
paths:
- 'package.json'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
- run: npm install
- run: npm test
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}

0 comments on commit 444a39a

Please sign in to comment.