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

Commit fd5fedf

Browse files
author
Kent C. Dodds
committed
fix(build): Remove unneeded stuff and hide output
1 parent d3b7e9e commit fd5fedf

File tree

3 files changed

+3
-30
lines changed

3 files changed

+3
-30
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"report-coverage": "cat ./coverage/lcov.info | node_modules/.bin/codecov",
2929
"code-checks": "eslint src/",
3030
"commit": "git-cz",
31-
"prepublish:latest": "node scripts/authorize-push.js",
3231
"publish:latest": "with-package scripts/publish-latest.sh pkg.version",
3332
"semantic-release": "semantic-release pre && npm run build && npm publish && semantic-release post && npm run publish:latest"
3433
},

scripts/authorize-push.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

scripts/publish-latest.sh

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

44
F_VERSION=$1
5-
6-
echo "shoing origin"
7-
git remote show origin
8-
9-
echo "updating"
10-
git remote update
11-
12-
echo "fetching"
13-
git fetch
14-
15-
echo "checking out"
16-
git checkout -b latest
5+
GH_REF=https://formly-bot:${BOT_GH_TOKEN}@github.com/formly-js/angular-formly.git
176

187
echo "mergin master"
19-
git merge origin/master -m "master merge" -X theirs
8+
git merge $GH_REF/master -m "master merge" -X theirs >/dev/null 2>/dev/null
209

2110
echo "adding dist"
2211
git add dist package.json
@@ -28,7 +17,7 @@ echo "tagging with v$F_VERSION"
2817
git tag v${F_VERSION} -f
2918

3019
echo "pushing"
31-
git push https://formly-bot:${BOT_GH_TOKEN}@github.com/formly-js/angular-formly.git latest --tags -f
20+
git push $GH_REF latest --tags -f >/dev/null 2>/dev/null
3221

3322
echo "done!"
3423

0 commit comments

Comments
 (0)