mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 12:45:39 +01:00
Fixes pipelines (#4107)
This commit is contained in:
parent
e637c1f34c
commit
50a8a5ffbf
5 changed files with 30 additions and 18 deletions
|
|
@ -73,7 +73,7 @@ export async function writeJsonFile(filePath: string, jsonData: unknown): Promis
|
|||
await writeFile(filePath, JSON.stringify(jsonData, null, '\t') + '\n');
|
||||
}
|
||||
|
||||
export function getNightlyVersion(version: string, prerelease: string | undefined): string {
|
||||
export function getNightlyVersion(version: string, prerelease: string): string {
|
||||
const pieces = version.split('.');
|
||||
const minor = parseInt(pieces[1], 10);
|
||||
const date = new Date();
|
||||
|
|
@ -81,7 +81,6 @@ export function getNightlyVersion(version: string, prerelease: string | undefine
|
|||
const mm = String(date.getUTCMonth() + 1).padStart(2, '0');
|
||||
const dd = String(date.getUTCDate()).padStart(2, '0');
|
||||
|
||||
prerelease = prerelease || 'dev-${today}';
|
||||
prerelease = prerelease.replace('${today}', `${yyyy}${mm}${dd}`);
|
||||
|
||||
return `0.${minor + 1}.0-${prerelease}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue