Skip to content

Commit 7bcaf7a

Browse files
authored
build prs
1 parent bee6a08 commit 7bcaf7a

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
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"

packages/scripts/build.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,15 @@ git config --global user.name "TomPallister"
99
npm install
1010
lerna bootstrap
1111
lerna 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

packages/scripts/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"homepage": "https://threemammals.com",
88
"license": "MIT",
99
"scripts": {
10-
"publish": "exit 0"
1110
},
1211
"gitHead": "59dc9d82ebd22e23b8ac8f1b4e1b7aca7ae27ab0"
1312
}

0 commit comments

Comments
 (0)