chore: update release.sh

This commit is contained in:
xilesun 2024-11-08 14:02:06 +08:00
parent 8e1eed7c2f
commit 38123129e2

View File

@ -1,7 +1,7 @@
current_version=$(jq -r '.version' lerna.json) current_version=$(jq -r '.version' lerna.json)
IFS='.-' read -r major minor patch label pre <<< "$current_version" 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 if [ "$1" == '--is-feat' ]; then
new_version="$major.$minor.0-beta" new_version="$major.$minor.0-beta"
echo $new_version; echo $new_version;