Skip to content

Commit 65fd45f

Browse files
committed
fix: check publish props only in verify ones are undefined
1 parent 65d6e93 commit 65fd45f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {castArray} = require('lodash');
1+
const {defaultTo, castArray} = require('lodash');
22
const verifyChangelog = require('./lib/verify');
33
const prepareChangelog = require('./lib/prepare');
44

@@ -10,7 +10,7 @@ async function verifyConditions(pluginConfig, {options}) {
1010
const preparePlugin =
1111
castArray(options.prepare).find(config => config.path && config.path === '@semantic-release/changelog') || {};
1212

13-
pluginConfig.changelogFile = pluginConfig.changelogFile || preparePlugin.changelogFile;
13+
pluginConfig.changelogFile = defaultTo(pluginConfig.changelogFile, preparePlugin.changelogFile);
1414
}
1515
await verifyChangelog(pluginConfig);
1616
verified = true;

0 commit comments

Comments
 (0)