Skip to content

Commit

Permalink
Fixed release script for prereleasing
Browse files Browse the repository at this point in the history
  • Loading branch information
hasaniqbal777 committed Nov 27, 2024
1 parent c2f8c9c commit ad40307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ VERSION_BUMP=${VERSION:1}
BRANCH=$(git rev-parse --abbrev-ref HEAD)

# Require valid format for version
rx='^v[0-9]+\.[0-9]+\.[0-9]+(-(dev|rc)[0-9]+)?$'
rx='^v[0-9]+\.[0-9]+\.[0-9]+((a|alpha|b|beta|dev|rc)[0-9]+)?$'
if ! [[ $VERSION =~ $rx ]]; then
c_echo $RED "The version must be in the format 'vX.X.X'"
c_echo $RED "The version must be in the format 'vX.X.X or vX.X.XaX or vX.X.XalphaX or vX.X.XbX or vX.X.XbetaX or vX.X.XdevX or vX.X.XrcX'"
exit 1
fi

Expand Down

0 comments on commit ad40307

Please sign in to comment.