mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Fixes pipelines (#4107)
This commit is contained in:
parent
e637c1f34c
commit
50a8a5ffbf
5 changed files with 30 additions and 18 deletions
|
|
@ -1,6 +1,15 @@
|
|||
export function getEnv(): {
|
||||
VSCODE_REF: string | undefined;
|
||||
PRERELEASE_VERSION: string | undefined;
|
||||
} {
|
||||
return process.env as any;
|
||||
interface Env {
|
||||
VSCODE_REF: string;
|
||||
PRERELEASE_VERSION: string;
|
||||
}
|
||||
|
||||
export function getNightlyEnv(): Env {
|
||||
const env: Env = process.env as any;
|
||||
if (!env.PRERELEASE_VERSION) {
|
||||
throw new Error(`Missing PRERELEASE_VERSION in process.env`);
|
||||
}
|
||||
if (!env.VSCODE_REF) {
|
||||
throw new Error(`Missing VSCODE_REF in process.env`);
|
||||
}
|
||||
return env;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue