diff --git a/bin/plugin/commands/performance.js b/bin/plugin/commands/performance.js index 1b0d85a2bb140..c4a500b105c26 100644 --- a/bin/plugin/commands/performance.js +++ b/bin/plugin/commands/performance.js @@ -161,10 +161,7 @@ async function setUpGitBranch( branch, environmentDirectory ) { await git.checkoutRemoteBranch( environmentDirectory, branch ); log( ' >> Building the ' + formats.success( branch ) + ' branch' ); - await runShellScript( - 'npm install && npm run build', - environmentDirectory - ); + await runShellScript( 'npm ci && npm run build', environmentDirectory ); } /** @@ -235,7 +232,7 @@ async function runPerformanceTests( branches, options ) { } log( ' >> Installing dependencies and building packages' ); await runShellScript( - 'npm install && npm run build:packages', + 'npm ci && npm run build:packages', performanceTestDirectory ); log( ' >> Creating the environment folders' );