|
|
@ -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 |