1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/scripts/tag-release.sh
Jari Kolehmainen 4096b87f99
Release v5.0.0-beta.10 (#3141)
* release v5.0.0-rc.0

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix release-drafter.yml

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add ability to force tag

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* release v5.0.0-rc.0

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix release-drafter.yml

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add ability to force tag

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* v5.0.0-beta.10

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix migrations

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-06-22 11:09:51 +03:00

22 lines
432 B
Bash
Executable File

#!/bin/bash
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
-f|--force)
FORCE="--force"
shift # past argument
;;
esac
done
if [[ `git branch --show-current` =~ ^release/v ]]
then
VERSION_STRING=$(cat package.json | jq '.version' -r | xargs printf "v%s")
git tag ${VERSION_STRING} ${FORCE}
git push ${GIT_REMOTE:-origin} ${VERSION_STRING} ${FORCE}
else
echo "You must be in a release branch"
fi