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

Commit a859530

Browse files
author
Kent C. Dodds
committed
fix(build): setting url properly
1 parent fd5fedf commit a859530

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/publish-latest.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
set -e # exit with non-zero exit code if there are failures
33

44
F_VERSION=$1
5-
GH_REF=https://formly-bot:${BOT_GH_TOKEN}@github.com/formly-js/angular-formly.git
5+
git remote set-url github https://formly-bot:${BOT_GH_TOKEN}@github.com/formly-js/angular-formly.git >/dev/null 2>/dev/null
66

7-
echo "mergin master"
8-
git merge $GH_REF/master -m "master merge" -X theirs >/dev/null 2>/dev/null
7+
echo "merging master"
8+
git merge github/master -m "master merge" -X theirs >/dev/null 2>/dev/null
99

1010
echo "adding dist"
1111
git add dist package.json
@@ -17,7 +17,7 @@ echo "tagging with v$F_VERSION"
1717
git tag v${F_VERSION} -f
1818

1919
echo "pushing"
20-
git push $GH_REF latest --tags -f >/dev/null 2>/dev/null
20+
git push github latest --tags -f >/dev/null 2>/dev/null
2121

2222
echo "done!"
2323

0 commit comments

Comments
 (0)