From d19f62fc75f6058b7f607d8eb29ca5cb7d93190c Mon Sep 17 00:00:00 2001 From: "Nicholas M.T. Elliott" Date: Sat, 19 Mar 2022 13:21:51 -0400 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release.yml 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 }}