-
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump all project versions in bump-version (#10)
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# script that bumps version for all projects regardless of whether they were | ||
# changed since last release. needed because `lerna version` only bumps versions for projects | ||
# listed by `lerna changed` by default. | ||
# | ||
# see: https://github.com/lerna/lerna/issues/2369 | ||
|
||
for package in ../*; do | ||
touch $package/TEMP | ||
git add $package/TEMP | ||
done | ||
|
||
(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 |