mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-18 15:33:52 +01:00
Move ci/build to workflow
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
const {readdirSync, cpSync} = require("node:fs");
|
||||
const {execSync} = require("node:child_process");
|
||||
const path = require("node:path");
|
||||
console.log('-----> Starting copy plugins script');
|
||||
const PLUGINS_DIR = process.env.YAAK_PLUGINS_DIR;
|
||||
@@ -8,13 +7,6 @@ if (!PLUGINS_DIR) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log('Installing dependencies', PLUGINS_DIR);
|
||||
const out = execSync('which npm', {cwd: PLUGINS_DIR, env: process.env}).toString('utf-8');
|
||||
console.log("WHICH NPM?", out);
|
||||
execSync('npm ci', {cwd: PLUGINS_DIR, env: process.env});
|
||||
console.log('Building plugins', PLUGINS_DIR);
|
||||
execSync('npm run build', {cwd: PLUGINS_DIR, env: process.env});
|
||||
|
||||
const pluginsRoot = path.join(PLUGINS_DIR, 'plugins');
|
||||
for (const name of readdirSync(pluginsRoot)) {
|
||||
const dir = path.join(pluginsRoot, name);
|
||||
|
||||
Reference in New Issue
Block a user