build: update conventional-changelog and simplify changelog gulp task (#25838)

The version prefix issue has been fixed with
conventional-changelog/conventional-changelog#179.

PR Close #25838
This commit is contained in:
George Kalpakas
2018-09-06 11:36:27 +03:00
committed by Ben Lesh
parent a53a559f5a
commit 2c40a86b61
3 changed files with 85 additions and 166 deletions

View File

@ -9,11 +9,6 @@
module.exports = (gulp) => () => {
const conventionalChangelog = require('gulp-conventional-changelog');
return gulp.src('CHANGELOG.md')
.pipe(conventionalChangelog({preset: 'angular', releaseCount: 1}, {
// Conventional Changelog Context
// We have to manually set version number so it doesn't get prefixed with `v`
// See https://github.com/conventional-changelog/conventional-changelog-core/issues/10
currentTag: require('../../package.json').version
}))
.pipe(conventionalChangelog({preset: 'angular'}))
.pipe(gulp.dest('./'));
};