diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ba9552a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +on: + push: + tags: + - 'v*' +name: Publish Package +jobs: + release: + name: Publish Package + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + # Use this GitHub Action + - name: Check package version + uses: technote-space/package-version-check-action@v1 + with: + COMMIT_DISABLED: 1 + + - name: Install Package dependencies + run: yarn install + - name: Build + run: yarn build + - name: Publish + run: | + npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN + npm publish + env: + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}