From cf7c66d94292a21350a3c7737ab83df2d9b78c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Flor=C3=AAncio?= Date: Tue, 24 Feb 2026 11:32:13 +0000 Subject: [PATCH] feat: improve release script --- scripts/release/publish-release.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/release/publish-release.sh b/scripts/release/publish-release.sh index 1eba653147..9f880faef9 100755 --- a/scripts/release/publish-release.sh +++ b/scripts/release/publish-release.sh @@ -11,6 +11,11 @@ fi VERSION="$1" +if [[ "$VERSION" != v* ]]; then + echo "Invalid version '$VERSION': release tags must start with 'v' (example: v0.1.2)." + exit 1 +fi + if git rev-parse "$VERSION" >/dev/null 2>&1; then echo "Tag $VERSION already exists." exit 1