Skip to content

Commit

Permalink
fix: always pass version to changelog context (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
Djaler authored and bcoe committed May 5, 2019
1 parent 31a8fd0 commit 00e3381
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/lifecycles/changelog.js
Expand Up @@ -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),
Expand Down

0 comments on commit 00e3381

Please sign in to comment.