From 9348ef4a1721e01ccb8168e33691eec8fab24adc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Th=C3=A9riault?= Date: Mon, 27 Nov 2023 16:19:17 -0800 Subject: [PATCH] make testing versions always semver --- scripts/testing.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/testing.js b/scripts/testing.js index 11d0f94a..0acf92b9 100644 --- a/scripts/testing.js +++ b/scripts/testing.js @@ -20,13 +20,13 @@ const cproc = require("node:child_process") const now = new Date() const parts = { - year: now.getUTCFullYear().toString(), - month: now.getUTCMonth().toString(), - day: now.getUTCDate().toString(), - hours: now.getUTCHours().toString(), - minutes: now.getUTCMinutes().toString(), + year: now.getUTCFullYear(), + month: now.getUTCMonth(), + day: now.getUTCDate(), + hours: now.getUTCHours(), + minutes: now.getUTCMinutes(), } -const version = `${parts.year}.${parts.month}.${parts.day}-t.${parts.hours}.${parts.minutes}` +const version = `${parts.year}.${parts.month}.${parts.day}-t.h${parts.hours}.m${parts.minutes}` const setVersion = (packageJsonPath) => { const packageJson = JSON.parse(