mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
build: Use shorter special version moniker
Some builds fail in the CI because the extra part of the version is limited to 20 chars.
This commit is contained in:
parent
238c9c6f0d
commit
d1404492a7
@ -7,7 +7,7 @@
|
|||||||
* user might run into module not found errors or styling errors caused by an old cache.
|
* 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
|
* 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.
|
// Add the nightly suffix, plus the date.
|
||||||
const referenceDate = new Date()
|
const referenceDate = new Date()
|
||||||
.toISOString()
|
.toISOString()
|
||||||
.substring(0, 19)
|
.substring(2, 19)
|
||||||
.replace(/[-:]*/g, "")
|
.replace(/[-:]*/g, "")
|
||||||
.replace("T", "-");
|
.replace("T", "-");
|
||||||
version = `${version}-nightly-${referenceDate}`;
|
version = `${version}-test-${referenceDate}`;
|
||||||
|
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user