Skip to content

Commit c2bee1c

Browse files
committed
release-it git.tagMatch parameter
1 parent bea9c79 commit c2bee1c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/create-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ jobs:
8888
params+=(--release=${{ github.event.inputs.specific_version }})
8989
# Determine prerelease logic
9090
elif [[ "${{ github.event.inputs.release_type }}" == "stable" ]]; then
91-
params+=(--${{ github.event.inputs.version_bump }})
92-
elif [[ "${{ github.event.inputs.continue_prerelease }}" == "true" ]]; then
91+
params+=(--${{ github.event.inputs.version_bump }}) elif [[ "${{ github.event.inputs.continue_prerelease }}" == "true" ]]; then
9392
# Add verbose logging to understand release-it's process
9493
params+=(--verbose)
9594
# Tell release-it to use prerelease tags
9695
params+=(--preReleaseId=${{ github.event.inputs.release_type }})
9796
params+=(--increment=prerelease)
9897
params+=(--preRelease=${{ github.event.inputs.release_type }})
98+
params+=(--git.tagMatch="v*-${{ github.event.inputs.release_type }}.*")
9999
params+=(--plugins.@release-it/keep-a-changelog.keepUnreleased)
100100
params+=(--no-plugins.@release-it/keep-a-changelog.strictLatest)
101101
else
@@ -114,4 +114,4 @@ jobs:
114114
echo "command: release-it ${params[@]}"
115115
release-it "${params[@]}"
116116
env:
117-
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
117+
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

0 commit comments

Comments
 (0)