Skip to content

Commit

Permalink
use --force-publish option for lerna version (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq authored Apr 11, 2023
1 parent 578b9ca commit 9ff812b
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,10 @@
#
# see: https://github.com/lerna/lerna/issues/2369

root_package=../..

for package in ../*; do
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
(npx -p lerna -y lerna version \
--no-git-tag-version \
--no-push \
--force-publish \
-y \
$1 \
) || exit 1

0 comments on commit 9ff812b

Please sign in to comment.