mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
Merge pull request #42 from orta/remove_daily
Remove daily infrastructure
This commit is contained in:
commit
558be96998
3 changed files with 1 additions and 56 deletions
|
|
@ -1,25 +0,0 @@
|
||||||
# triggered by schedule at 5am to try make sure it's done after the TS daily build
|
|
||||||
schedules:
|
|
||||||
- cron: '0 5 * * *'
|
|
||||||
displayName: Daily 5am build
|
|
||||||
branches:
|
|
||||||
include:
|
|
||||||
- master
|
|
||||||
always: true
|
|
||||||
|
|
||||||
pr: none
|
|
||||||
|
|
||||||
pool:
|
|
||||||
vmImage: 'ubuntu-latest'
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- bash: |
|
|
||||||
npm install
|
|
||||||
npm run run-nightly
|
|
||||||
displayName: 'Update & Build'
|
|
||||||
|
|
||||||
- bash: |
|
|
||||||
echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
|
|
||||||
npm publish --tag next
|
|
||||||
|
|
||||||
displayName: 'Publish to NPM'
|
|
||||||
|
|
@ -8,8 +8,7 @@
|
||||||
"compile": "mrmdir ./release && npm run compile-amd && npm run compile-esm",
|
"compile": "mrmdir ./release && npm run compile-amd && npm run compile-esm",
|
||||||
"watch": "tsc -p ./src --watch",
|
"watch": "tsc -p ./src --watch",
|
||||||
"prepublishOnly": "npm run compile && node ./scripts/bundle && mcopy ./src/monaco.d.ts ./release/monaco.d.ts",
|
"prepublishOnly": "npm run compile && node ./scripts/bundle && mcopy ./src/monaco.d.ts ./release/monaco.d.ts",
|
||||||
"import-typescript": "node ./scripts/importTypescript",
|
"import-typescript": "node ./scripts/importTypescript"
|
||||||
"run-nightly": "node ./scripts/runDaily"
|
|
||||||
},
|
},
|
||||||
"author": "Microsoft Corporation",
|
"author": "Microsoft Corporation",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
// @ts-check
|
|
||||||
/*---------------------------------------------------------------------------------------------
|
|
||||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
||||||
*--------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
const { execSync } = require("child_process");
|
|
||||||
const { join } = require("path");
|
|
||||||
const { readFileSync, writeFileSync } = require("fs");
|
|
||||||
|
|
||||||
// Update to the daily build
|
|
||||||
execSync("npm install --save typescript@next");
|
|
||||||
|
|
||||||
// Update the dts files
|
|
||||||
execSync("npm run import-typescript");
|
|
||||||
|
|
||||||
// Sync the versions
|
|
||||||
const packagePath = join(__dirname, "../package.json");
|
|
||||||
const package = JSON.parse(readFileSync(packagePath, "utf8"));
|
|
||||||
|
|
||||||
const tsPackagePath = join(__dirname, "../node_modules/typescript/package.json");
|
|
||||||
const tsPackage = JSON.parse(readFileSync(tsPackagePath, "utf8"));
|
|
||||||
|
|
||||||
// Set the monaco-typescript version to directly match the typescript nightly version
|
|
||||||
package.version = tsPackage.version;
|
|
||||||
writeFileSync(packagePath, JSON.stringify(package), "utf8");
|
|
||||||
|
|
||||||
// Update the dts files
|
|
||||||
execSync("npm run compile");
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue