workflow: only generate changelog for the latest release and concat with the old

so that the old manually edited parts won't be overwritten.
This commit is contained in:
Haoqun Jiang
2019-01-03 14:48:21 +08:00
parent a7fa19140d
commit 016d474e1c
3 changed files with 32 additions and 16 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ const release = async () => {
}
await execa(require.resolve('lerna/cli'), lernaArgs, { stdio: 'inherit' })
require('./genChangelog')(version)
await require('./genChangelog')(version)
const packages = JSON.parse(
(await execa(require.resolve('lerna/cli'), ['list', '--json'])).stdout