fix: semver_git_tag quick exiting
This commit is contained in:
@@ -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
|
||||||
# echo $TAG >${GIT_ROOT_FOLDER}/.semver_git_tag
|
git add ${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 commit -am "tagged as ${TAG}"
|
||||||
#git tag $TAG
|
git tag $TAG
|
||||||
#git push origin master --tags
|
git push origin master --tags
|
||||||
echo done
|
echo done
|
||||||
|
|||||||
Reference in New Issue
Block a user