added more logs to identify #193

This commit is contained in:
phips28 2022-10-27 18:12:24 +02:00
parent 7a87f05809
commit 75c1d00e6e
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ if (process.env.PACKAGEJSON_DIR) {
process.chdir(process.env.GITHUB_WORKSPACE);
}
console.log('process.env.GITHUB_WORKSPACE', process.env.GITHUB_WORKSPACE);
const workspace = process.env.GITHUB_WORKSPACE;
const pkg = getPackageJson();
@ -258,6 +259,7 @@ function logError(error) {
function runInWorkspace(command, args) {
return new Promise((resolve, reject) => {
console.log('runInWorkspace | command:', command, 'args:', args);
const child = spawn(command, args, { cwd: workspace });
let isDone = false;
const errorMessages = [];