Browse Source

fix: semver_git_tag quick exiting

master
pvincent 2 years ago
parent
commit
84448dd7e2
  1. 13
      tools/semver_git_tag

13
tools/semver_git_tag

@ -1,4 +1,4 @@
#!/bin/bash -x
#!/bin/bash
function usage() { function usage() {
echo 'usage: --major | -M | --minor | -m | --patch | -p' echo 'usage: --major | -M | --minor | -m | --patch | -p'
@ -140,11 +140,10 @@ if [[ -f "${GIT_ROOT_FOLDER}/package.json" ]]; then
git add ${GIT_ROOT_FOLDER}/package.json git add ${GIT_ROOT_FOLDER}/package.json
fi fi
echo $TAG
# echo $TAG >${GIT_ROOT_FOLDER}/.semver_git_tag
#git add ${GIT_ROOT_FOLDER}/.semver_git_tag
echo $TAG >${GIT_ROOT_FOLDER}/.semver_git_tag
git add ${GIT_ROOT_FOLDER}/.semver_git_tag
echo "tagging as $TAG ..." echo "tagging as $TAG ..."
#git commit -am "tagged as ${TAG}"
#git tag $TAG
#git push origin master --tags
git commit -am "tagged as ${TAG}"
git tag $TAG
git push origin master --tags
echo done echo done
Loading…
Cancel
Save