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
moritzraho authored Jul 19, 2021
1 parent 8866564 commit 10c03a9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/on-push-publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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 }}
access: 'public'

0 comments on commit 10c03a9

Please sign in to comment.