Skip to content

Commit 1850307

Browse files
committed
action: fix release workflow
1 parent bb33bac commit 1850307

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ jobs:
5353
echo "Commit message / PR title: $COMMIT_MSG"
5454
5555
# Determine bump type based on conventional commit prefix (support optional scope)
56-
if echo "$COMMIT_MSG" | grep -qiE "^(feat|feature)(\([^)]*\))?:"; then
56+
if echo "$COMMIT_MSG" | grep -qiE "^(feat|feature|fix)(\([^)]*\))?:"; then
5757
echo "type=minor" >> $GITHUB_OUTPUT
5858
echo "Version bump: MINOR (feat/feature)"
59-
elif echo "$COMMIT_MSG" | grep -qiE "^fix(\([^)]*\))?:"; then
59+
elif echo "$COMMIT_MSG" | grep -qiE "^patch(\([^)]*\))?:"; then
6060
echo "type=patch" >> $GITHUB_OUTPUT
6161
echo "Version bump: PATCH (fix)"
62-
elif echo "$COMMIT_MSG" | grep -qiE "^(patch|bump|maint|chore|refactor)(\([^)]*\))?:"; then
62+
elif echo "$COMMIT_MSG" | grep -qiE "^(bump|maint|chore|refactor)(\([^)]*\))?:"; then
6363
echo "type=patch" >> $GITHUB_OUTPUT
6464
echo "Version bump: PATCH"
6565
else
@@ -149,7 +149,7 @@ jobs:
149149
echo "## ℹ️ No Version Bump" >> $GITHUB_STEP_SUMMARY
150150
echo "" >> $GITHUB_STEP_SUMMARY
151151
echo "The commit message doesn't match any versioning patterns:" >> $GITHUB_STEP_SUMMARY
152-
echo "- \`feat:\` for minor version bump" >> $GITHUB_STEP_SUMMARY
153-
echo "- \`fix:\` or \`patch:\`, \`bump:\`, \`maint:\`, or \`refactor:\` for patch version bump" >> $GITHUB_STEP_SUMMARY
152+
echo "- \`feat:\` or \`fix:\` for minor version bump" >> $GITHUB_STEP_SUMMARY
153+
echo "- \`patch:\`, \`bump:\`, \`maint:\`, or \`refactor:\` for patch version bump" >> $GITHUB_STEP_SUMMARY
154154
echo "" >> $GITHUB_STEP_SUMMARY
155155
echo "Current version remains: **${{ steps.current_version.outputs.version }}**" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)