Skip to content

Commit

Permalink
fix(npm): mark releases as latest with lerna
Browse files Browse the repository at this point in the history
  • Loading branch information
jazmon committed Feb 22, 2024
1 parent 80f70b0 commit b122fe8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions plugins/npm/__tests__/npm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion plugins/npm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})
);

Expand Down

0 comments on commit b122fe8

Please sign in to comment.