mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
Also run monaco-editor checks in nightly
This commit is contained in:
parent
2379aa505f
commit
2fb82fb3ad
4 changed files with 94 additions and 11 deletions
22
.github/workflows/nightly/setNightlyVersion.js
vendored
Normal file
22
.github/workflows/nightly/setNightlyVersion.js
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
//@ts-check
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
if (process.argv.length !== 3) {
|
||||
console.error(`usage: node updateVersion.js <PATH_TO_PACKAGE_JSON_FILE>`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const packagejson = JSON.parse(fs.readFileSync(process.argv[2]).toString());
|
||||
|
||||
const date = new Date();
|
||||
packagejson.version += `-dev.${date.getUTCFullYear()}${String(date.getUTCMonth() + 1).padStart(
|
||||
2,
|
||||
'0'
|
||||
)}${String(date.getUTCDate()).padStart(2, '0')}`;
|
||||
fs.writeFileSync(process.argv[2], JSON.stringify(packagejson, null, '\t') + '\n');
|
||||
Loading…
Add table
Add a link
Reference in a new issue