From aac2a981bc1f66d9e485c5874312d8d194f775cd Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Mon, 30 Sep 2024 22:42:15 -0400 Subject: [PATCH] chore(release): remove unused brew id --- .goreleaser.yaml | 1 - scripts/version_bump.sh | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 scripts/version_bump.sh diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ff7fbbd3e..04b51664e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -82,7 +82,6 @@ brews: - name: sonr ids: - default - - motr commit_author: name: goreleaserbot email: bot@goreleaser.com diff --git a/scripts/version_bump.sh b/scripts/version_bump.sh new file mode 100644 index 000000000..c918e6c32 --- /dev/null +++ b/scripts/version_bump.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e + +# Get the current version from most recent git tag +export VERSION=$(git describe --tags --abbrev=0) + +# Check if the version is a valid semantic version +if ! [[ $VERSION =~ ^v?[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + echo "Invalid version format: $VERSION" + exit 1 +fi + +# Check if the version has already been bumped +