diff --git a/.github/workflows/autopublish.yml b/.github/workflows/autopublish.yml new file mode 100644 index 0000000..3630aa8 --- /dev/null +++ b/.github/workflows/autopublish.yml @@ -0,0 +1,19 @@ +name: Node.js Package + +on: + push: + branches: + - main + +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12.x" + registry-url: https://registry.npmjs.org/ + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}}