File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 33 "scripts" : {
44 "build" : " ./packages/scripts/build.sh" ,
55 "lerna" : " lerna run" ,
6- "bootstrap" : " lerna bootstrap" ,
7- "publish" : " lerna publish"
6+ "bootstrap" : " lerna bootstrap"
87 },
98 "devDependencies" : {
109 "lerna" : " ^3.4.0"
Original file line number Diff line number Diff line change @@ -9,4 +9,15 @@ git config --global user.name "TomPallister"
99npm install
1010lerna bootstrap
1111lerna run test --stream
12- lerna publish --conventional-commits --changelog-preset angular --yes
12+
13+ branch=$( git symbolic-ref --short -q HEAD)
14+ master_branch=master
15+
16+ if [ $branch != $master_branch ]
17+ then
18+ echo " PR PUBLISH"
19+ lerna publish --canary --conventional-commits --changelog-preset angular --yes
20+ else
21+ echo " MASTER PUBLISH"
22+ lerna publish --conventional-commits --changelog-preset angular --yes
23+ fi
Original file line number Diff line number Diff line change 77 "homepage" : " https://threemammals.com" ,
88 "license" : " MIT" ,
99 "scripts" : {
10- "publish" : " exit 0"
1110 },
1211 "gitHead" : " 59dc9d82ebd22e23b8ac8f1b4e1b7aca7ae27ab0"
1312}
You can’t perform that action at this time.
0 commit comments