aboutsummaryrefslogtreecommitdiffstats
path: root/build/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'build/tasks')
-rw-r--r--build/tasks/build.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js
index 1a3ed1d82..d05f7daf0 100644
--- a/build/tasks/build.js
+++ b/build/tasks/build.js
@@ -148,7 +148,10 @@ async function getLastModifiedDate() {
async function writeCompiled( { code, dir, filename, version } ) {
// Use the last modified date so builds are reproducible
- const date = await getLastModifiedDate();
+ const date = process.env.RELEASE_DATE ?
+ new Date( process.env.RELEASE_DATE ) :
+ await getLastModifiedDate();
+
const compiledContents = code
// Embed Version