From d6cfebdafa251edf24a2b138502de474c7c7485c Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 25 Jan 2024 20:41:50 +1100 Subject: [PATCH] build: add tag_release.sh --- scripts/tag_release.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/tag_release.sh diff --git a/scripts/tag_release.sh b/scripts/tag_release.sh new file mode 100755 index 0000000..f7a56c4 --- /dev/null +++ b/scripts/tag_release.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +if [[ ! $1 =~ ^(eslint-config-react|prettier-config-react)@v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + echo "Tag must match eslint-config-react@v1.2.3 or prettier-config-react@v1.2.3" + exit 1 +fi + +git tag $1 +git push origin $1