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 +