From 84448dd7e24984d3735e58e3973221a6c8551217 Mon Sep 17 00:00:00 2001 From: pvincent Date: Fri, 9 Sep 2022 23:19:21 +0400 Subject: [PATCH] fix: semver_git_tag quick exiting --- tools/semver_git_tag | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/semver_git_tag b/tools/semver_git_tag index 8d4bff7..9e1a67b 100755 --- a/tools/semver_git_tag +++ b/tools/semver_git_tag @@ -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