From 00e338159e2158b23a58a4da9e95c5f5075257aa Mon Sep 17 00:00:00 2001 From: Kirill Romanov Date: Sun, 5 May 2019 23:03:25 +0300 Subject: [PATCH] fix: always pass version to changelog context (#327) --- lib/lifecycles/changelog.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/lifecycles/changelog.js b/lib/lifecycles/changelog.js index 512d63a50..689ed382c 100644 --- a/lib/lifecycles/changelog.js +++ b/lib/lifecycles/changelog.js @@ -35,8 +35,7 @@ function outputChangelog (args, newVersion) { oldContent = oldContent.substring(oldContentStart) } let content = '' - let context - if (args.dryRun) context = { version: newVersion } + const context = { version: newVersion } let changelogStream = conventionalChangelog({ debug: args.verbose && console.info.bind(console, 'conventional-changelog'), preset: presetLoader(args),