|
|
@ -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 |