From b6955cf18703e4db6d3350489f4dab74b21d9ccb Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Fri, 24 Jun 2022 22:17:52 +0200 Subject: [PATCH] Allow release tasks to be called individually by always initializing nextVersion as current and token param --- gulpfile.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 5d8cd30..1cc5c2d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -242,11 +242,10 @@ gulp.task('inject', function () { }); var pkg = require('./package.json'); -var nextVersion; -var ghToken; +var nextVersion = pkg.version; +var ghToken = gutil.env.token; gulp.task('release:init', function (cb) { - ghToken = gutil.env.token; if (!ghToken) { return cb(new Error('--token is required (github personal access token')); } @@ -254,8 +253,6 @@ gulp.task('release:init', function (cb) { return cb(new Error('--token length must be 40, not ' + ghToken.length)); } - nextVersion = pkg.version; - if (gutil.env.skipnewtag) { return cb(); }