File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,17 @@ package="$1"
55npm_tag=rc
66semver=$( npm bin) /semver
77
8+ bold=$( tput bold)
9+ normal=$( tput sgr0)
10+
811pushd modules/$package > /dev/null
912
1013# get the version we're publishing as a release candidate
1114local_version=$( jq -r .version package.json)
15+ echo " Bumping $package @${local_version} "
1216if [[ $local_version =~ " -" ]]; then
1317 echo " ❌ Found pre-release version: $package @$local_version ; bailing!"
1418 exit 1
15- else
16- echo " Local version: $package @$local_version "
1719fi
1820
1921# find the *greatest* published prerelease
@@ -27,16 +29,17 @@ rc_version=$(
2729)
2830# if there isn't one, use the current local version
2931if [[ " $rc_version " == " " ]]; then
32+ echo " 🤷♀️ no published RC; using ${bold}${local_version}${normal} "
3033 rc_version=$local_version
34+ else
35+ echo " 📰 published RC: ${bold}${rc_version}${normal} "
3136fi
3237
33- echo " RC version: $rc_version "
34-
3538# increment by the tagged prerelease id
3639next_version=$(
37- $semver --increment prerelease --preid= " $npm_tag " " $rc_version "
40+ $semver -i prerelease --preid $npm_tag " $rc_version "
3841)
3942
40- echo " next RC version: $rc_version "
41- npm version --no-git " $next_version "
43+ bumped= $( npm version --no-git " $next_version " )
44+ echo " ➡️ ${bold}${bumped}${normal} "
4245popd > /dev/null
You can’t perform that action at this time.
0 commit comments