build: fix changelog generation
This commit is contained in:
parent
00df9b574c
commit
9eae9d2a6e
4 changed files with 18 additions and 12 deletions
|
|
@ -56,17 +56,16 @@ export const config = conventionalChangelogPreset({
|
|||
|
||||
/**
|
||||
*
|
||||
* @param {string|undefined} version
|
||||
* @param {boolean|undefined} onTag
|
||||
* @returns
|
||||
*/
|
||||
export function getChangelog(version = undefined, onTag = false) {
|
||||
export function getChangelog(onTag = false) {
|
||||
return conventionalChangelogCore(
|
||||
{
|
||||
config,
|
||||
releaseCount: onTag ? 2 : 1,
|
||||
},
|
||||
{ version, linkCompare: false },
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
{ headerPartial: '' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue