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',