Skip to content

Commit

Permalink
Merge pull request #156 from iamludal/main
Browse files Browse the repository at this point in the history
fix(preInstall): disable silent flag if debug mode is enabled
  • Loading branch information
cycjimmy committed Mar 24, 2023
2 parents d5e20ef + 6d1b158 commit b75597b
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 b75597b

Please sign in to comment.