Skip to content

Commit

Permalink
fix(semver): bump major and minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Cesarato committed Jan 21, 2021
1 parent fbfdfe0 commit fd7485f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Helper/SemanticVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@ public function bump(string $release): string

if ($release === self::MAJOR) {
$newVersion[0]++;
$newVersion[1] = 0;
$newVersion[2] = 0;
} elseif ($release === self::MINOR) {
$newVersion[1]++;
$newVersion[2] = 0;
} elseif ($release === self::PATCH) {
$newVersion[2]++;
}
Expand Down

0 comments on commit fd7485f

Please sign in to comment.