From 019fdd93018f61dc2585d2dee3951cbce7a60f63 Mon Sep 17 00:00:00 2001 From: Kirill Romanov Date: Mon, 22 Apr 2019 13:43:49 +0300 Subject: [PATCH] fix: always pass version to changelog context --- 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 da47f5415..2bfcf0982 100644 --- a/lib/lifecycles/changelog.js +++ b/lib/lifecycles/changelog.js @@ -28,8 +28,7 @@ function outputChangelog (args, newVersion) { oldContent = oldContent.substring(oldContent.search(changelogSectionRegExp)) } 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: args.preset || 'angular',