Skip to content

Commit 86a0e59

Browse files
committed
fix: fix installation error for npm-audit
fix installation error for npm-audit fix #159
1 parent f044c7a commit 86a0e59

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/installSpecifyingVersionSemantic.task.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = async () => {
1313
? `@${semantic_version}`
1414
: '';
1515

16-
const {stdout, stderr} = await exec(`npm install semantic-release${versionSuffix} --silent`, {
16+
const {stdout, stderr} = await exec(`npm install semantic-release${versionSuffix} --no-audit --silent`, {
1717
cwd: path.resolve(__dirname, '..')
1818
});
1919
core.debug(stdout);

src/preInstall.task.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ module.exports = async extras => {
1212
}
1313

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

17-
const { stdout, stderr } = await exec(`npm install ${_extras} ${silentFlag}`, {
17+
const { stdout, stderr } = await exec(`npm install ${_extras} --no-audit ${silentFlag}`, {
1818
cwd: path.resolve(__dirname, '..')
1919
});
2020
core.debug(stdout);

0 commit comments

Comments
 (0)