Skip to content

Commit 00e3381

Browse files
DjalerBenjamin E. Coe
authored andcommitted
fix: always pass version to changelog context (#327)
1 parent 31a8fd0 commit 00e3381

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/lifecycles/changelog.js

Lines changed: 1 addition & 2 deletions
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)