diff --git a/plugins/npm/__tests__/npm.test.ts b/plugins/npm/__tests__/npm.test.ts index 266417a7a..1921741ef 100644 --- a/plugins/npm/__tests__/npm.test.ts +++ b/plugins/npm/__tests__/npm.test.ts @@ -1684,12 +1684,16 @@ describe("makeRelease", () => { expect(publish).toHaveBeenCalledWith( "update package 1", "@packages/a", - false + false, + undefined, + true ); expect(publish).toHaveBeenCalledWith( "update package 2", "@packages/b", - false + false, + undefined, + true ); }); }); diff --git a/plugins/npm/src/index.ts b/plugins/npm/src/index.ts index e56dfe3d5..3694d24f9 100644 --- a/plugins/npm/src/index.ts +++ b/plugins/npm/src/index.ts @@ -1580,7 +1580,7 @@ export default class NPMPlugin implements IPlugin { auto.logger.log.info(`Using release notes:\n${releaseNotes}`); // 2. make a release for just that package - return auto.git?.publish(releaseNotes, tag, options.isPrerelease); + return auto.git?.publish(releaseNotes, tag, options.isPrerelease, undefined, !options.isPrerelease); }) );