
committed by
Alex Rickabaugh

parent
ebb27727e4
commit
fa4e17082c
@ -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/'));
|
||||
};
|
||||
|
Reference in New Issue
Block a user