diff --git a/script/release.sh b/script/release.sh index 35cb60c..7558800 100755 --- a/script/release.sh +++ b/script/release.sh @@ -9,8 +9,13 @@ fi ROOT=$(dirname $0)/.. -new_version=$(gobump "$1" -w -v cmd | jq -r '.[]') +# gofmt +gofmt -s -w . +git add ./*.go +git commit -m "gofmt" || true # ignore no changes error +# gobump +new_version=$(gobump "$1" -w -v cmd | jq -r '.[]') git add ./*.go git commit -m "Bump version $new_version" git push origin master