From 924ff79dc8d14ee0852a87ccab1deb1d0496e5b9 Mon Sep 17 00:00:00 2001 From: Niallfitzy1 Date: Thu, 14 Mar 2024 18:39:39 +0000 Subject: [PATCH] chore: make release action manual --- .github/workflows/release.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e6c70c4ff..1a8ac9fe1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,6 @@ name: Release -on: - push: - branches: - - master +on: workflow_dispatch jobs: release: @@ -14,14 +11,17 @@ jobs: uses: actions/checkout@v3 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: '16.13.2' + node-version: 'lts/*' + registry-url: 'https://registry.npmjs.org' + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Install Dependencies run: yarn install -# test and build prior to release + # test and build prior to release - name: Unit Test & Linting run: yarn test @@ -32,4 +32,5 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: npx semantic-release