build(zone.js): update changelog of zone.js (#31915)

PR Close #31915
This commit is contained in:
JiaLiPassion
2019-07-30 15:21:52 -06:00
committed by Alex Rickabaugh
parent ebb27727e4
commit fa4e17082c
3 changed files with 21 additions and 10 deletions

View File

@ -7,17 +7,16 @@
*/
module.exports = (gulp) => () => {
const tag = process.env.ZONE_TAG;
const tag = process.env.TAG;
const ptag = process.env.PREVIOUS_ZONE_TAG;
const conventionalChangelog = require('gulp-conventional-changelog');
return gulp.src('packages/zone.js/CHANGELOG.md')
.pipe(conventionalChangelog(
{preset: 'angular'}, {
currentTag: tag,
},
{
// Ignore commits that have a different scope than `zone.js`.
extendedRegexp: true,
grep: '^[^(]+\\(zone\\.js\\)',
}))
.pipe(conventionalChangelog({preset: 'angular'}, {}, {
// Ignore commits that have a different scope than `zone.js`.
extendedRegexp: true,
grep: '^[^(]+\\(zone\\.js\\)',
from: ptag,
to: tag,
}))
.pipe(gulp.dest('./packages/zone.js/'));
};