ci: verison升级时小版本号归0

This commit is contained in:
shanmite 2021-12-06 16:26:11 +08:00
parent 90ac347ff2
commit 01562b6ee0

View File

@ -15,9 +15,12 @@ patch=${OLD_VERSION_ARRAY[2]}
case "${level}" in
"major")
((major += 1))
minor=0
patch=0
;;
"minor")
((minor += 1))
patch=0
;;
*)
((patch += 1))