Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include root package in version bump script #12

Merged
merged 1 commit into from
Mar 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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