Browse Source

.semver_git_tag always updated

master
pvincent 4 years ago
parent
commit
791a889b24
  1. 5
      tools/semver_git_tag

5
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
Loading…
Cancel
Save