Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit 3512707

Browse files
committed
master merge
2 parents 6d316d1 + 8656e9a commit 3512707

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"code-checks": "eslint src/",
3030
"commit": "git-cz",
3131
"publish:latest": "with-package scripts/publish-latest.sh pkg.version",
32-
"semantic-release": "semantic-release pre && npm run build && npm publish && npm run publish:latest && semantic-release post"
32+
"semantic-release": "semantic-release pre && npm run build && npm run publish:latest"
3333
},
3434
"betterScripts": {
3535
"build:dist": {
@@ -137,4 +137,4 @@
137137
"czConfig": {
138138
"path": "node_modules/cz-conventional-changelog"
139139
}
140-
}
140+
}

scripts/publish-latest.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,23 @@ echo "setting global bot config"
77
git config --global user.email [email protected]
88
git config --global user.name formly-bot
99

10-
echo "setting remote"
11-
git remote set-url origin https://formly-bot:$BOT_GH_TOKEN@github.com/formly-js/angular-formly.git >/dev/null 2>/dev/null
12-
13-
echo "merging master"
14-
git merge origin/master -m "master merge" -X theirs
15-
1610
echo "adding dist"
1711
git add dist package.json
1812

1913
echo "committing with $F_VERSION"
2014
git commit -m v$F_VERSION --no-verify
2115

16+
echo "setting remote"
17+
git remote set-url origin https://formly-bot:$BOT_GH_TOKEN@github.com/formly-js/angular-formly.git >/dev/null 2>/dev/null
18+
19+
echo "checking out latest"
20+
git remote set-branches --add origin latest # required because travis clones with --branch=master
21+
git fetch origin
22+
git checkout latest
23+
24+
echo "merging master"
25+
git merge master -m "master merge" -X theirs
26+
2227
echo "pushing"
2328
git push origin HEAD:latest -f >/dev/null 2>/dev/null
2429

0 commit comments

Comments
 (0)