1
0
mirror of https://github.com/lensapp/lens.git synced 2024-09-20 22:07:31 +03:00
lens/scripts/tag-release.sh
2021-05-12 08:03:45 -04:00

11 lines
275 B
Bash
Executable File

#!/bin/bash
if [[ ${git branch --show-current} =~ ^release/v ]]
then
VERSION_STRING=$(cat package.json | jq '.version' -r | xargs printf "v%s")
git tag ${VERSION_STRING}
git push ${GIT_REMOTE:-origin} ${VERSION_STRING}
else
echo "You must be in a release branch"
fi