fix: include release notes in JS API result for dry mode
This commit is contained in:
parent
3d5db1f8b0
commit
3411520ea7
8
index.js
8
index.js
@ -96,14 +96,14 @@ async function run(context, plugins) {
|
|||||||
|
|
||||||
await plugins.verifyRelease(context);
|
await plugins.verifyRelease(context);
|
||||||
|
|
||||||
|
nextRelease.notes = await plugins.generateNotes(context);
|
||||||
|
|
||||||
if (options.dryRun) {
|
if (options.dryRun) {
|
||||||
const notes = await plugins.generateNotes(context);
|
|
||||||
logger.log(`Release note for version ${nextRelease.version}:`);
|
logger.log(`Release note for version ${nextRelease.version}:`);
|
||||||
if (notes) {
|
if (nextRelease.notes) {
|
||||||
context.stdout.write(marked(notes));
|
context.stdout.write(marked(nextRelease.notes));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
nextRelease.notes = await plugins.generateNotes(context);
|
|
||||||
await plugins.prepare(context);
|
await plugins.prepare(context);
|
||||||
|
|
||||||
// Create the tag before calling the publish plugins as some require the tag to exists
|
// Create the tag before calling the publish plugins as some require the tag to exists
|
||||||
|
Loading…
x
Reference in New Issue
Block a user