ci: publish script retry on failure, log all version on completion

This commit is contained in:
Elliot DeNolf
2024-05-08 12:30:27 -04:00
parent 259ae674a1
commit dc8c099d9e
2 changed files with 32 additions and 8 deletions

View File

@@ -98,8 +98,8 @@ export const updateChangelog = async (args: Args = {}): Promise<ChangelogResult>
if (writeChangelog) {
const changelogPath = 'CHANGELOG.md'
const changelog = await fse.readFile(changelogPath, 'utf8')
const newChangelog = changelog + '\n\n' + changelog
const existingChangelog = await fse.readFile(changelogPath, 'utf8')
const newChangelog = changelog + '\n\n' + existingChangelog
await fse.writeFile(changelogPath, newChangelog)
console.log(`Changelog updated at ${changelogPath}`)
}