From cf61fb1d692b2a8b347336bf416d12e420c3530b Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sat, 4 Dec 2021 22:16:01 +0100 Subject: [PATCH] workflows: add release script triggered by tag --- .github/workflows/Release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..fcb6188 --- /dev/null +++ b/.github/workflows/Release.yml @@ -0,0 +1,28 @@ +name: Release + +on: + push: + tags: v* + +jobs: + release: + name: Release workflow + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 16.x + registry-url: "https://registry.npmjs.org/" + + - name: Install + run: yarn --frozen-lockfile --non-interactive + + - name: Publish + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}