change naming of nightly and snapshot builds (#1326)

replace `-` with `.` to make auto-update work correctly
This commit is contained in:
Alberto Iannaccone 2022-08-17 17:13:25 +02:00 committed by GitHub
parent 9e2b73a045
commit 5be1f9d7fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,9 +80,9 @@ function getVersion() {
}
if (!isRelease) {
if (isNightly) {
version = `${version}-nightly-${timestamp()}`;
version = `${version}.nightly-${timestamp()}`;
} else {
version = `${version}-snapshot-${currentCommitish()}`;
version = `${version}.snapshot-${currentCommitish()}`;
}
if (!semver.valid(version)) {
throw new Error(`Invalid patched version: '${version}'.`);