This commit is contained in:
Bryce Thorup
2023-12-15 06:44:45 -07:00
parent 04aa46aa34
commit f182e8bc71

View File

@@ -1,9 +1,9 @@
apt update
apt install jq -y
# CURRENT_VERSION=$(jq -r .version package.json)
# PREVIOUS_VERSIONS=$(git tag -l)
CURRENT_VERSION=$(jq -r .version package.json)
PREVIOUS_VERSIONS=$(git tag -l)
# if [[ $PREVIOUS_VERSIONS =~ (^|[[:space:]])$CURRENT_VERSION($|[[:space:]]) ]]; then
# git tag -a -m "Version $(CURRENT_VERSION)" $CURRENT_VERSION
# git push --follow-tags
# fi
if [[ $PREVIOUS_VERSIONS =~ (^|[[:space:]])$CURRENT_VERSION($|[[:space:]]) ]]; then
git tag -a -m "Version $(CURRENT_VERSION)" $CURRENT_VERSION
git push --follow-tags
fi