Skip to content

Commit 87791ce

Browse files
committed
feat: Run goreleaser as part of the version bumping script
1 parent c7dbf39 commit 87791ce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/release-version.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5+
cd "${SCRIPT_DIR}/.."
6+
47
# Ensure a new version argument is provided
58
if [ "$#" -lt 1 ]; then
69
echo "Usage: ${0} <new-version> [--execute]"
@@ -55,11 +58,12 @@ if [ "$EXECUTE" = "1" ]; then
5558
git tag "${TAG_NAME}"
5659
git push origin main "${TAG_NAME}"
5760
echo "Version bumped to ${NEW_VERSION} and git tag ${TAG_NAME} created."
58-
## TODO: uncomment after some manual testing
59-
# goreleaser release --clean
61+
echo "Running goreleaser..."
62+
goreleaser release --clean
6063
else
6164
echo "Would create commit with message: '${COMMIT_MESSAGE}'"
6265
echo "Would create tag: ${TAG_NAME}"
66+
echo "Would run 'goreleaser release --clean' to publish the release."
6367
echo "Reverting back changes..."
6468
git checkout .
6569
fi

0 commit comments

Comments
 (0)