Skip to content

Commit

Permalink
fix(*): use silent installation to prevent npm WARN
Browse files Browse the repository at this point in the history
fix #48
  • Loading branch information
cycjimmy committed Nov 12, 2020
1 parent b25ce01 commit 7ca507d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/installSpecifyingVersionSemantic.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = async () => {
? `@${semantic_version}`
: '';

const {stdout, stderr} = await exec(`npm install semantic-release${versionSuffix}`, {
const {stdout, stderr} = await exec(`npm install semantic-release${versionSuffix} --silent`, {
cwd: path.resolve(__dirname, '..')
});
core.debug(stdout);
Expand Down
2 changes: 1 addition & 1 deletion src/preInstall.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = async extras => {

const _extras = extras.replace(/['"]/g, '').replace(/[\n\r]/g, ' ');

const { stdout, stderr } = await exec(`npm install ${_extras}`, {
const { stdout, stderr } = await exec(`npm install ${_extras} --silent`, {
cwd: path.resolve(__dirname, '..')
});
core.debug(stdout);
Expand Down

0 comments on commit 7ca507d

Please sign in to comment.