From 444a39aaf3f304a12948baf3633222a5eca77fe6 Mon Sep 17 00:00:00 2001 From: Manas Kumar Maji Date: Wed, 17 Mar 2021 11:44:32 +0530 Subject: [PATCH] Create on-push-publish-to-npm.yml --- .github/workflows/on-push-publish-to-npm.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/on-push-publish-to-npm.yml diff --git a/.github/workflows/on-push-publish-to-npm.yml b/.github/workflows/on-push-publish-to-npm.yml new file mode 100644 index 0000000..9478067 --- /dev/null +++ b/.github/workflows/on-push-publish-to-npm.yml @@ -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 }}