You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
434 B
17 lines
434 B
7 years ago
|
const version = process.argv[2] || process.env.VERSION
|
||
8 years ago
|
const cc = require('conventional-changelog')
|
||
7 years ago
|
const file = `./RELEASE_NOTE${version ? `_${version}` : ``}.md`
|
||
8 years ago
|
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}`)
|
||
|
})
|