mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-07 18:56:56 +00:00
fix: fix installation error for npm-audit
fix installation error for npm-audit fix #159
This commit is contained in:
parent
f044c7a1fc
commit
86a0e59803
2 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ module.exports = async () => {
|
||||||
? `@${semantic_version}`
|
? `@${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, '..')
|
cwd: path.resolve(__dirname, '..')
|
||||||
});
|
});
|
||||||
core.debug(stdout);
|
core.debug(stdout);
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ module.exports = async extras => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const _extras = extras.replace(/['"]/g, '').replace(/[\n\r]/g, ' ');
|
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, '..')
|
cwd: path.resolve(__dirname, '..')
|
||||||
});
|
});
|
||||||
core.debug(stdout);
|
core.debug(stdout);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue