Skip to content

Commit

Permalink
fix(release): revert change made by error in commit 8669751
Browse files Browse the repository at this point in the history
  • Loading branch information
armandabric committed Jul 24, 2017
1 parent e9042c1 commit 903fd5c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ if [ $currentBranch != 'master' ]; then
exit 1
fi

# if [[ -n $(git status --porcelain) ]]; then
# printf "Release: Working tree is not clean (git status)\n"
# exit 1
# fi
if [[ -n $(git status --porcelain) ]]; then
printf "Release: Working tree is not clean (git status)\n"
exit 1
fi

if [[ $# -eq 0 ]] ; then
printf "Release: use ``yarn release [major|minor|patch|x.x.x]``\n"
exit 1
fi

./node_modules/.bin/mversion $1
./node_modules/.bin/conventional-changelog --infile CHANGELOG.md --same-file --preset angular
./node_modules/.bin/doctoc README.md
git commit -am "$(./node_modules/.bin/json -f package.json version)"
git tag v`./node_modules/.bin/json -f package.json version`
mversion $1
conventional-changelog --infile CHANGELOG.md --same-file --preset angular
doctoc README.md
git commit -am "$(json -f package.json version)"
git tag v`json -f package.json version`
git push
git push --tags
npm publish

0 comments on commit 903fd5c

Please sign in to comment.