From d3574cc57acc1ab4c1336b71c680c4b17c8054ba Mon Sep 17 00:00:00 2001 From: Arkerthan <arkerthan@mailbox.org> Date: Sat, 18 Mar 2023 14:38:16 +0100 Subject: [PATCH] Gulp: Fix injecting git commit --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 9b2bfaedb1a..51db1e235e6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -317,10 +317,10 @@ gulp.task('prepare', gulp.parallel(prepareComponent("module"), prepareComponent( // Create the main build and clean tasks, which include writing Git commit hash if we are working in a Git repo if (isGitCheckout()) { exports.clean = gulp.parallel(cleanupGit, removeIntermediateFiles); - gulp.task('buildHTML', gulp.series(exports.clean, 'prepare', injectGitCommit, 'compileStory', cleanupGit)); + gulp.task('buildHTML', gulp.series(exports.clean, injectGitCommit, 'prepare', 'compileStory', cleanupGit)); } else if (args.ci) { // CI environment is already clean - gulp.task('buildHTML', gulp.series('prepare', injectGitCommit, 'compileStory')); + gulp.task('buildHTML', gulp.series(injectGitCommit, 'prepare', 'compileStory')); } else { exports.clean = gulp.parallel(removeIntermediateFiles); gulp.task('buildHTML', gulp.series(exports.clean, 'prepare', 'compileStory')); -- GitLab