Revert "change naming of nightly and snapshot builds (#1326)"

This reverts commit 5be1f9d7fe7513a432f6c7d4c58e330aad73699d.
This commit is contained in:
Alberto Iannaccone 2022-09-12 16:28:03 +02:00 committed by per1234
parent bf303d1b2f
commit 7f06b148f4

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}'.`);