diff --git a/tools/semver_git_tag b/tools/semver_git_tag index 63b8194..01aa3a8 100755 --- a/tools/semver_git_tag +++ b/tools/semver_git_tag @@ -143,13 +143,14 @@ if [[ -f "${GIT_ROOT_FOLDER}/package.json" ]]; then tmp=$(mktemp) jq '.version = $TAG' --arg TAG $TAG "${GIT_ROOT_FOLDER}/package.json" > "$tmp" && mv "$tmp" "${GIT_ROOT_FOLDER}/package.json" - git commit -am "tagged as ${TAG}" - git push fi set -e # EXITS when any error occurs +echo $TAG > ${GIT_ROOT_FOLDER}/.semver_git_tag +git add ${GIT_ROOT_FOLDER}/.semver_git_tag echo "tagging as $TAG ..." +git commit -am "tagged as ${TAG}" git tag $TAG git push origin master --tags echo done