Skip to content

Commit

Permalink
Fix version bumping for minor and major (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan authored Jul 10, 2023
1 parent 5142b9a commit 4e16d07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4e16d07

Please sign in to comment.