Skip to content

Commit

Permalink
Merge pull request #102 from immobiliare/fix-first-release
Browse files Browse the repository at this point in the history
fix(bump): write version on first release
  • Loading branch information
dnlup committed Apr 2, 2024
2 parents 02d1424 + 638670d commit 1f7453e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/lifecycles/bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,10 @@ async function Bump(args, version) {
newVersion =
semver.valid(releaseType) ||
semver.inc(version, releaseType, args.prerelease);
updateConfigs(args, newVersion);
} else {
checkpoint(
args,
'skip version bump on first release',
[],
chalk.red(figures.cross)
);
checkpoint(args, 'first release', [], chalk.green(figures.bullet));
}
updateConfigs(args, newVersion);
await runLifecycleScript(args, 'postbump');
return newVersion;
}
Expand Down

0 comments on commit 1f7453e

Please sign in to comment.