1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/scripts/tag-release.sh
Sebastian Malton fc245f078f Add tag command, update guide, add PR templates
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-29 12:00:21 -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