提交 f15e5a70 编写于 作者: J Joao Moreno

use yarn --frozen-lockfile for builds

上级 b266566c
......@@ -11,7 +11,7 @@ steps:
inputs:
versionSpec: "1.10.1"
- script: |
yarn
yarn --frozen-lockfile
displayName: Install Dependencies
condition: ne(variables['CacheRestored'], 'true')
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
......
......@@ -37,7 +37,7 @@ steps:
- script: |
set -e
yarn
yarn --frozen-lockfile
displayName: Install dependencies
- script: |
......
......@@ -19,7 +19,7 @@ steps:
inputs:
versionSpec: "1.10.1"
- script: |
yarn
yarn --frozen-lockfile
displayName: Install Dependencies
condition: ne(variables['CacheRestored'], 'true')
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
......
......@@ -46,7 +46,7 @@ steps:
- script: |
set -e
CHILD_CONCURRENCY=1 yarn
CHILD_CONCURRENCY=1 yarn --frozen-lockfile
displayName: Install dependencies
- script: |
......
......@@ -46,7 +46,7 @@ steps:
- script: |
set -e
CHILD_CONCURRENCY=1 yarn
CHILD_CONCURRENCY=1 yarn --frozen-lockfile
displayName: Install dependencies
- script: |
......
......@@ -38,7 +38,7 @@ steps:
- script: |
set -e
CHILD_CONCURRENCY=1 yarn
CHILD_CONCURRENCY=1 yarn --frozen-lockfile
displayName: Install dependencies
- script: |
......
......@@ -15,7 +15,7 @@ steps:
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
vstsFeed: '$(ArtifactFeed)'
- powershell: |
yarn
yarn --frozen-lockfile
displayName: Install Dependencies
condition: ne(variables['CacheRestored'], 'true')
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
......
......@@ -40,7 +40,7 @@ steps:
$ErrorActionPreference = "Stop"
$env:npm_config_arch="$(VSCODE_ARCH)"
$env:CHILD_CONCURRENCY="1"
exec { yarn }
exec { yarn --frozen-lockfile }
displayName: Install dependencies
- powershell: |
......
......@@ -20,13 +20,10 @@ function yarnInstall(location, opts) {
const raw = process.env['npm_config_argv'] || '{}';
const argv = JSON.parse(raw);
const original = argv.original || [];
const args = ['install'];
const args = original.filter(arg => arg === '--ignore-optional' || arg === '--frozen-lockfile');
if (original.indexOf('--ignore-optional') > -1) {
args.push('--ignore-optional');
}
console.log('Installing dependencies in \'%s\'.', location);
console.log(`Installing dependencies in ${location}...`);
console.log(`$ yarn ${args.join(' ')}`);
const result = cp.spawnSync(yarn, args, opts);
if (result.error || result.status !== 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册