diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index 5d48d81ef..ace70d67b 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -4,13 +4,16 @@ # # see: https://github.com/lerna/lerna/issues/2369 +root_package=../.. + for package in ../*; do - touch $package/TEMP - git add $package/TEMP + touch $package/TEMP && git add $package/TEMP done +touch $root_package/TEMP && git add $root_package/TEMP (npx -p lerna -y lerna version --no-git-tag-version --no-push -y $1) || exit 1 for package in ../*; do git rm -f $package/TEMP done +git rm -f $root_package/TEMP