From 903fd5c30535ac7b643682a6f3b6a04003fc178a Mon Sep 17 00:00:00 2001 From: Armand Abric Date: Mon, 24 Jul 2017 15:03:08 +0200 Subject: [PATCH] fix(release): revert change made by error in commit 86697517 --- release.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/release.sh b/release.sh index debf2dd92..23ad8c2f5 100755 --- a/release.sh +++ b/release.sh @@ -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