|
@ -1,6 +1,5 @@ |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
set -euo pipefail |
|
|
|
|
|
|
|
|
|
|
|
function usage() { |
|
|
function usage() { |
|
|
echo 'usage: --major | -M | --minor | -m | --patch | -p' |
|
|
echo 'usage: --major | -M | --minor | -m | --patch | -p' |
|
@ -142,7 +141,7 @@ if [[ -f "${GIT_ROOT_FOLDER}/package.json" ]]; then |
|
|
|
|
|
|
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
set -e # EXITS when any error occurs |
|
|
|
|
|
|
|
|
set -euo pipefail # EXITS when any error occurs |
|
|
|
|
|
|
|
|
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 |
|
|