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 Nov 13, 2023
1 parent 7a6f0ae commit 281b903
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 281b903

Please sign in to comment.