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