From d1404492a747dcc62c91d2da1847983f853a91cb Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 2 Nov 2024 11:04:16 +0200 Subject: [PATCH] build: Use shorter special version moniker Some builds fail in the CI because the extra part of the version is limited to 20 chars. --- bin/update-nightly-version.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/update-nightly-version.ts b/bin/update-nightly-version.ts index 44b352fb4..aad8da3cf 100644 --- a/bin/update-nightly-version.ts +++ b/bin/update-nightly-version.ts @@ -7,7 +7,7 @@ * user might run into module not found errors or styling errors caused by an old cache. * * This script is supposed to be run in the CI, which will update locally the version field of - * `package.json` to contain the date. For example, `0.90.9-beta` will become `0.90.9-nightly-20241102-092832`. + * `package.json` to contain the date. For example, `0.90.9-beta` will become `0.90.9-test-YYMMDD-HHMMSS`. * */ @@ -22,10 +22,10 @@ function processVersion(version) { // Add the nightly suffix, plus the date. const referenceDate = new Date() .toISOString() - .substring(0, 19) + .substring(2, 19) .replace(/[-:]*/g, "") .replace("T", "-"); - version = `${version}-nightly-${referenceDate}`; + version = `${version}-test-${referenceDate}`; return version; }