From 6011a147b31f5f0f0b88509293552c923ce6cdf7 Mon Sep 17 00:00:00 2001 From: Stojan Dimitrovski Date: Fri, 19 Jan 2024 12:36:10 +0100 Subject: [PATCH] ci: fix release script for gotrue-js (#840) `-neq` should have been `!=`. --- .github/workflows/release.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d54e0e66..ee33457f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,13 @@ on: - next - rc workflow_dispatch: + inputs: + ref: + description: Tag or branch to check out for releasing + default: master + type: string + required: true + jobs: release: @@ -18,7 +25,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + ref: ${{ inputs.ref || 'master' }} + fetch-depth: 0 # Get whole repo with all the information - name: Set up Node uses: actions/setup-node@v1 @@ -39,7 +49,7 @@ jobs: env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: | - if [ "0.0.0" -neq $(jq -r '.version' package.json) ] + if [ "0.0.0" != $(jq -r '.version' package.json) ] then echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc