diff --git a/release.sh b/release.sh index b3b6bf45e5..1cc1994bcd 100755 --- a/release.sh +++ b/release.sh @@ -1,7 +1,7 @@ current_version=$(jq -r '.version' lerna.json) IFS='.-' read -r major minor patch label pre <<< "$current_version" -if [ "$label" == 'beta' ]; then +if [[ "$label" == 'beta' || "$2" == '--is-beta' ]]; then if [ "$1" == '--is-feat' ]; then new_version="$major.$minor.0-beta" echo $new_version;