diff --git a/release.sh b/release.sh index 326d893658..7c6d6841ab 100755 --- a/release.sh +++ b/release.sh @@ -5,6 +5,12 @@ cd $DIR set -e +# Ensure that the GITHUB_TOKEN is exposed in the environment. +if ! env | grep GITHUB_TOKEN= > /dev/null; then + echo "GITHUB_TOKEN must be exported in the environment to perform a release." 2>&1 + exit 1 +fi + export GO111MODULE=on version=$(go run ./internal/cmd/changelog nextver)