diff --git a/.github/workflows/npmRelease.yml b/.github/workflows/npmRelease.yml new file mode 100644 index 0000000..0035e03 --- /dev/null +++ b/.github/workflows/npmRelease.yml @@ -0,0 +1,24 @@ +name: publish + +on: + release: + types: [created] + +jobs: + publish: + 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: 14 + registry-url: https://registry.npmjs.org/ + + - run: npm install + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}