separate script

This commit is contained in:
Bryce Thorup committed 2023-12-15 06:17:44 -07:00
1 parent d1d661b55c
commit 881af76500
2 files changed
+10 -7

No files matched your search

Executable
+9
View File
@@ -0,0 +1,9 @@
apt update
apt install jq -y
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