diff --git a/.github/workflows/PUBLISH.yml b/.github/workflows/PUBLISH.yml new file mode 100644 index 0000000..2448fd8 --- /dev/null +++ b/.github/workflows/PUBLISH.yml @@ -0,0 +1,20 @@ +name: PUBLISH +on: + push: + tags: + - 'v*' + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14 + - name: Publish + run: | + npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} + npm publish --ignore-scripts + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file