Skip to content

Commit e471253

Browse files
committed
fix: update release type options to remove 'auto' and set default to 'patch'
1 parent f851ba5 commit e471253

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/backend-release-pr.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ on:
66
type: choice
77
description: Choose release type
88
options:
9-
- auto
109
- patch
1110
- minor
1211
- major
13-
default: auto
12+
default: patch
1413
beta:
1514
type: boolean
1615
description: Prerelease
@@ -46,7 +45,7 @@ jobs:
4645
- name: Prepare release
4746
env:
4847
GITHUB_TOKEN: ${{ secrets.APP_INSTALLATION_TOKEN }}
49-
TYPE_ARG: ${{ fromJSON('{"auto":"", "patch":"patch", "minor":"minor", "major":"major"}')[github.event.inputs.type] }}
48+
TYPE_ARG: ${{ fromJSON('{"patch":"patch", "minor":"minor", "major":"major"}')[github.event.inputs.type] }}
5049
BETA_ARG: ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
5150
run: npm run release -- $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $BETA_ARG
5251
- name: get-npm-version

0 commit comments

Comments
 (0)