Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions build/prepareNightly.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ if (!parts) {
throw new Error(`Invalid version number ${version}`);
}
// Add date to version.
const major = parts[1];
const minor = parts[2];
const patch = parts[3];
const major = +parts[1];
const minor = +parts[2];
let patch = +parts[3];
const isStable = !parts[4];
if (isStable) {
// It's previous stable version. Dev version should be higher.
patch++;
}

const date = new Date().toISOString().replace(/:|T|\.|-/g, '').slice(0, 8);
const nightlyVersion = `${major}.${minor}.${patch}-dev.${date}`;
Expand Down