mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-07 18:56:56 +00:00
Merge pull request #162 from cycjimmy/fix-npm-install-error
fix: fix installation error for npm-audit
This commit is contained in:
commit
d1d598471e
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue