diff --git a/src/installSpecifyingVersionSemantic.task.js b/src/installSpecifyingVersionSemantic.task.js index bdb0605c..3c5acb83 100644 --- a/src/installSpecifyingVersionSemantic.task.js +++ b/src/installSpecifyingVersionSemantic.task.js @@ -13,7 +13,7 @@ module.exports = async () => { ? `@${semantic_version}` : ''; - const {stdout, stderr} = await exec(`npm install semantic-release${versionSuffix} --silent`, { + const {stdout, stderr} = await exec(`npm install semantic-release${versionSuffix} --no-audit --silent`, { cwd: path.resolve(__dirname, '..') }); core.debug(stdout); diff --git a/src/preInstall.task.js b/src/preInstall.task.js index 60caadc7..7384ae37 100644 --- a/src/preInstall.task.js +++ b/src/preInstall.task.js @@ -12,9 +12,9 @@ module.exports = async extras => { } const _extras = extras.replace(/['"]/g, '').replace(/[\n\r]/g, ' '); - const silentFlag = process.env.RUNNER_DEBUG == '1' ? '' : '--silent'; + const silentFlag = process.env.RUNNER_DEBUG === '1' ? '' : '--silent'; - const { stdout, stderr } = await exec(`npm install ${_extras} ${silentFlag}`, { + const { stdout, stderr } = await exec(`npm install ${_extras} --no-audit ${silentFlag}`, { cwd: path.resolve(__dirname, '..') }); core.debug(stdout);