From 4e16d07381a86ebd9287cade20015a1fccd60b22 Mon Sep 17 00:00:00 2001 From: Sven Rebhan <36194019+srebhan@users.noreply.github.com> Date: Mon, 10 Jul 2023 17:05:52 +0200 Subject: [PATCH] Fix version bumping for minor and major (#4) --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 40a3c1c..68c738c 100644 --- a/index.js +++ b/index.js @@ -131,9 +131,12 @@ function bumpVersion(before, target) { version[2] += 1 break; case 'minor': + version[2] = 0 version[1] += 1 break; case 'major': + version[2] = 0 + version[1] = 0 version[0] += 1 break; }