From bcd6c1a0d39f8482085071e8ce9266bf5f0f40d3 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Wed, 31 Mar 2021 12:24:27 +0200 Subject: [PATCH] Fix bump:html for release task (#366) --- gulpfile.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index b34c187..8d2e366 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -287,10 +287,17 @@ gulp.task('bump:json', function () { gulp.task('bump:html', function () { return gulp .src('./index.html') - .pipe(replace(/(.*)<\/sup>/, '' + pkg.version + '')) + .pipe( + replace( + /(.*)<\/sup>/, + '' + (nextVersion || pkg.version) + '' + ) + ) .pipe(gulp.dest('.')); }); +gulp.task('bump', gulp.series('bump:json', 'bump:html')); + gulp.task('release:commit', function () { return gulp.src(['./index.html', './package.json']).pipe(git.commit('release: ' + nextVersion)); }); @@ -469,7 +476,7 @@ gulp.task( 'release', gulp.series( 'release:init', - 'bump:json', + 'bump', 'release:commit', 'release:tag', 'release:push',