Skip to content

Commit

Permalink
fix(bump): write version on first release
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlup committed Apr 2, 2024
1 parent 02d1424 commit 638670d
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 638670d

Please sign in to comment.