Skip to content

Commit

Permalink
ci: fix release script for gotrue-js (#840)
Browse files Browse the repository at this point in the history
`-neq` should have been `!=`.
  • Loading branch information
hf authored Jan 19, 2024
1 parent 5d4fdb5 commit 6011a14
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6011a14

Please sign in to comment.