Skip to content

Commit 19ec81f

Browse files
committed
chore(ci): format changelogs before commiting
1 parent e8a644e commit 19ec81f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/release-stable.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ function safeExec(cmd: string, opts = {}) {
185185
const branchName = `release-${version}`
186186

187187
try {
188+
// Format generated changelogs before committing
189+
console.log('\n✨ Formatting generated changelogs...')
190+
safeExec('npx nx format:write')
191+
console.log('✅ Changelogs formatted\n')
188192
safeExec(`git checkout -b ${branchName}`)
189193
safeExec('git add CHANGELOG.md || true')
190194
safeExec('git add packages/**/CHANGELOG.md || true')

0 commit comments

Comments
 (0)