Skip to content

Commit 5ecdaeb

Browse files
committed
fix(ci): handle conventional-graduate in release workflow
1 parent 16e7a61 commit 5ecdaeb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ jobs:
6767
GITHUB_TOKEN: ${{ steps.auth.outputs.token }}
6868
run: |
6969
ARGS=""
70-
if [[ "${{ inputs.bump }}" == "(auto)" ]]; then
71-
ARGS+="${{ inputs.prerelease && format('--conventional-prerelease') || format('') }} "
70+
if [[ ${{ inputs.prerelease }}; then
71+
ARGS+="--conventional-prerelease "
72+
ARGS+="${{ inputs.bump == '(auto)' && ' ' || format('pre{0}', inputs.bump) }} "
7273
else
73-
ARGS+="${{ inputs.prerelease && format('pre{0}', inputs.bump) || inputs.bump }} "
74+
ARGS+="${{ inputs.bump == '(auto)' && '--conventional-graduate' || inputs.bump }} "
7475
fi
7576
if [[ "${{ inputs.dry-run }}" == "true" ]]; then
7677
ARGS+="--dry-run "

0 commit comments

Comments
 (0)