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

Commit

Permalink
fix(build): Remove unneeded stuff and hide output
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Aug 28, 2015
1 parent d3b7e9e commit fd5fedf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 30 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"report-coverage": "cat ./coverage/lcov.info | node_modules/.bin/codecov",
"code-checks": "eslint src/",
"commit": "git-cz",
"prepublish:latest": "node scripts/authorize-push.js",
"publish:latest": "with-package scripts/publish-latest.sh pkg.version",
"semantic-release": "semantic-release pre && npm run build && npm publish && semantic-release post && npm run publish:latest"
},
Expand Down
15 changes: 0 additions & 15 deletions scripts/authorize-push.js

This file was deleted.

17 changes: 3 additions & 14 deletions scripts/publish-latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,10 @@
set -e # exit with non-zero exit code if there are failures

F_VERSION=$1

echo "shoing origin"
git remote show origin

echo "updating"
git remote update

echo "fetching"
git fetch

echo "checking out"
git checkout -b latest
GH_REF=https://formly-bot:${BOT_GH_TOKEN}@github.com/formly-js/angular-formly.git

echo "mergin master"
git merge origin/master -m "master merge" -X theirs
git merge $GH_REF/master -m "master merge" -X theirs >/dev/null 2>/dev/null

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

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

echo "done!"

0 comments on commit fd5fedf

Please sign in to comment.