diff --git a/gulpfile.js b/gulpfile.js index 9b2bfaedb1a083666b7335c7d2d274e9fe1448a9..51db1e235e695e6b151f4eb14f47fe96fc35231e 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'));