From 638670db9ef5bb26c7a1ce73ffde24848d1e443d Mon Sep 17 00:00:00 2001 From: dnlup Date: Tue, 2 Apr 2024 12:05:34 +0200 Subject: [PATCH] fix(bump): write version on first release --- lib/lifecycles/bump.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/lifecycles/bump.js b/lib/lifecycles/bump.js index 026daec50..5edd5b556 100644 --- a/lib/lifecycles/bump.js +++ b/lib/lifecycles/bump.js @@ -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; }