diff --git a/release.sh b/release.sh index 1439f5f..37e257f 100644 --- a/release.sh +++ b/release.sh @@ -39,7 +39,11 @@ npm --no-git-tag-version --allow-same-version version "$VER" cd - git add . -git commit -m "$TAG" + +if [ -n "$(git diff --cached)" ]; then + git commit -m "$TAG" +fi + git tag $TAG git push git push origin $TAG