fix: semver_git_tag quick exiting

This commit is contained in:
pvincent
2022-09-09 23:19:21 +04:00
parent d9ecf63326
commit 84448dd7e2
+6 -7
View File
@@ -1,4 +1,4 @@
#!/bin/bash -x
#!/bin/bash
function usage() {
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
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 ..."
#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