Skip to content

Commit 6d4994a

Browse files
fix publish.sh
1 parent f866b71 commit 6d4994a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fi;
1111
LAST_TAG=$(git tag | tail -n 1);
1212
MAJOR=$(echo $LAST_TAG | sed -E 's/v([0-9]+)\..*/\1/');
1313
MINOR=$(echo $LAST_TAG | sed -E 's/v[0-9]+\.([0-9]+)\..*/\1/');
14-
PATCH=$(echo $LAST_TAG | sed -E 's/v[0-9]+\.[0-9]+\.([0-9]+)-rc[0-9]+/\1/');
14+
PATCH=$(echo $LAST_TAG | sed -E 's/v[0-9]+\.[0-9]+\.([0-9]+)($|-rc[0-9]+)/\1/');
1515
RC=0;
1616

1717
if [ "$RELEASE_CANDIDATE" = true ]

0 commit comments

Comments
 (0)