Skip to content

Commit 00e3381

Browse files
Djalerbcoe
authored andcommittedMay 5, 2019
fix: always pass version to changelog context (#327)
1 parent 31a8fd0 commit 00e3381

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎lib/lifecycles/changelog.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ function outputChangelog (args, newVersion) {
3535
oldContent = oldContent.substring(oldContentStart)
3636
}
3737
let content = ''
38-
let context
39-
if (args.dryRun) context = { version: newVersion }
38+
const context = { version: newVersion }
4039
let changelogStream = conventionalChangelog({
4140
debug: args.verbose && console.info.bind(console, 'conventional-changelog'),
4241
preset: presetLoader(args),

0 commit comments

Comments
 (0)
Please sign in to comment.