👷 npm i in core during CI
This commit is contained in:
parent
e4e8a680af
commit
55dedd9261
1 changed files with 14 additions and 2 deletions
|
|
@ -7,11 +7,23 @@ if (!process.cwd().endsWith("vscode")) {
|
|||
// This is sometimes run from root dir instead (e.g. in VS Code tasks)
|
||||
process.chdir("extensions/vscode");
|
||||
}
|
||||
exec("npm install", (error) => {
|
||||
exec("npm install", async (error) => {
|
||||
if (error) throw error;
|
||||
console.log("npm install completed");
|
||||
|
||||
process.chdir("../../gui");
|
||||
await new Promise((resolve, reject) => {
|
||||
process.chdir("../../core");
|
||||
exec("npm install", (error) => {
|
||||
if (error) {
|
||||
reject(error);
|
||||
} else {
|
||||
console.log("npm install completed in core");
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
process.chdir("../gui");
|
||||
|
||||
exec("npm install", (error) => {
|
||||
if (error) throw error;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue