Skip to content

Commit

Permalink
disable silent flag on debug (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamludal committed Mar 22, 2023
1 parent 91ab76a commit 6d1b158
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/preInstall.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ module.exports = async extras => {
}

const _extras = extras.replace(/['"]/g, '').replace(/[\n\r]/g, ' ');
const silentFlag = process.env.RUNNER_DEBUG == '1' ? '' : '--silent';

const { stdout, stderr } = await exec(`npm install ${_extras} --silent`, {
const { stdout, stderr } = await exec(`npm install ${_extras} ${silentFlag}`, {
cwd: path.resolve(__dirname, '..')
});
core.debug(stdout);
Expand Down

0 comments on commit 6d1b158

Please sign in to comment.