From f27a65c946bd3607a92f4a9d0ae5cd37613f2339 Mon Sep 17 00:00:00 2001 From: Jesse Wright <63333554+jeswr@users.noreply.github.com> Date: Wed, 18 Oct 2023 17:30:24 +0100 Subject: [PATCH] chore: use re-usable release (#845) --- .github/workflows/release.yml | 20 +++++--------------- .nvmrc | 2 +- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ebae5d22..5bf2a8b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,21 +4,11 @@ on: push: tags: - v[0-9]+.[0-9]+.[0-9]+ + - v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+ + - v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+ -env: - CI: true jobs: publish-npm: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Prepare for publication to npm - uses: actions/setup-node@v3 - with: - node-version-file: ".nvmrc" - registry-url: "https://registry.npmjs.org" - cache: npm - - run: npm ci - - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.INRUPT_NPM_TOKEN }} + uses: inrupt/typescript-sdk-tools/.github/workflows/reusable-release.yml@v2 + secrets: + NODE_AUTH_TOKEN: ${{ secrets.INRUPT_NPM_TOKEN }} diff --git a/.nvmrc b/.nvmrc index b6a7d89c..209e3ef4 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16 +20