Skip to content

Commit 9ff812b

Browse files
authored
use --force-publish option for lerna version (#49)
1 parent 578b9ca commit 9ff812b

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

scripts/bump-version.sh

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,10 @@
44
#
55
# see: https://github.com/lerna/lerna/issues/2369
66

7-
root_package=../..
8-
9-
for package in ../*; do
10-
touch $package/TEMP && git add $package/TEMP
11-
done
12-
touch $root_package/TEMP && git add $root_package/TEMP
13-
14-
(npx -p lerna -y lerna version --no-git-tag-version --no-push -y $1) || exit 1
15-
16-
for package in ../*; do
17-
git rm -f $package/TEMP
18-
done
19-
git rm -f $root_package/TEMP
7+
(npx -p lerna -y lerna version \
8+
--no-git-tag-version \
9+
--no-push \
10+
--force-publish \
11+
-y \
12+
$1 \
13+
) || exit 1

0 commit comments

Comments
 (0)