diff --git a/update.bash b/update.bash index 4bd4f44..87bdf96 100755 --- a/update.bash +++ b/update.bash @@ -15,8 +15,9 @@ namespace VioletUI { } EOF -npm version patch - -git commit -am "Bump version number" -git push +[[ -z "$1" ]] && { echo "Not updating without changelog."; exit 0; } +{ printf "## [0.1.]"; printf "$1"; cat CHANGELOG.md; } > tmp.md && mv tmp.md CHANGELOG.md +# $(date +%F) +# npm version patch +# git push \ No newline at end of file