Skip to content

Commit 0ad2b32

Browse files
committed
fix: Fix write changelog action
1 parent 28a0248 commit 0ad2b32

File tree

1 file changed

+1
-1
lines changed
  • build-packages/merge-and-write-changelogs

1 file changed

+1
-1
lines changed

build-packages/merge-and-write-changelogs/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ async function writeChangelog(changelog: string): Promise<void> {
185185
await writeFile(
186186
'CHANGELOG.md',
187187
unifiedChangelog.split('\n').slice(0, 30).join('\n') +
188+
'\n' +
188189
`# ${process.env.VERSION}` +
189190
'\n' +
190191
changelog +
191-
'\n\n' +
192192
unifiedChangelog.split('\n').slice(30).join('\n'),
193193
{ encoding: 'utf8' }
194194
);

0 commit comments

Comments
 (0)