mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-02 20:17:52 +08:00
17 lines
395 B
JavaScript
17 lines
395 B
JavaScript
const version = process.env.VERSION
|
|
const cc = require('conventional-changelog')
|
|
const file = `./RELEASE_NOTE_${version}.md`
|
|
const fileStream = require('fs').createWriteStream(file)
|
|
|
|
cc({
|
|
preset: 'angular',
|
|
pkg: {
|
|
transform (pkg) {
|
|
pkg.version = `v${version}`
|
|
return pkg
|
|
}
|
|
}
|
|
}).pipe(fileStream).on('close', () => {
|
|
console.log(`Generated release note at ${file}`)
|
|
})
|