Skip to content

Commit 19d674f

Browse files
committed
remove yarn cache
1 parent ef893f0 commit 19d674f

5 files changed

Lines changed: 100 additions & 100 deletions

File tree

build/azure-pipelines/darwin/product-build-darwin.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,30 @@ steps:
3535
git merge $(node -p "require('./package.json').distro")
3636
displayName: Merge distro
3737

38-
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
39-
inputs:
40-
keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
41-
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
42-
vstsFeed: 'npm-vscode'
38+
# - task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
39+
# inputs:
40+
# keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
41+
# targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
42+
# vstsFeed: 'npm-vscode'
4343

4444
- script: |
4545
set -e
46-
yarn --frozen-lockfile
46+
CHILD_CONCURRENCY=1 yarn --frozen-lockfile
4747
displayName: Install dependencies
48-
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
49-
50-
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
51-
inputs:
52-
keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
53-
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
54-
vstsFeed: 'npm-vscode'
55-
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
56-
57-
- script: |
58-
set -e
59-
yarn postinstall
60-
displayName: Run postinstall scripts
61-
condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
48+
# condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
49+
50+
# - task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
51+
# inputs:
52+
# keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
53+
# targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
54+
# vstsFeed: 'npm-vscode'
55+
# condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
56+
57+
# - script: |
58+
# set -e
59+
# yarn postinstall
60+
# displayName: Run postinstall scripts
61+
# condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
6262

6363
- script: |
6464
set -e

build/azure-pipelines/linux/product-build-linux-alpine.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,30 @@ steps:
4444
git merge $(node -p "require('./package.json').distro")
4545
displayName: Merge distro
4646

47-
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
48-
inputs:
49-
keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
50-
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
51-
vstsFeed: 'npm-vscode'
47+
# - task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
48+
# inputs:
49+
# keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
50+
# targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
51+
# vstsFeed: 'npm-vscode'
5252

5353
- script: |
5454
set -e
55-
yarn --frozen-lockfile
55+
CHILD_CONCURRENCY=1 yarn --frozen-lockfile
5656
displayName: Install dependencies
57-
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
58-
59-
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
60-
inputs:
61-
keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
62-
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
63-
vstsFeed: 'npm-vscode'
64-
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
65-
66-
- script: |
67-
set -e
68-
yarn postinstall
69-
displayName: Run postinstall scripts
70-
condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
57+
# condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
58+
59+
# - task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
60+
# inputs:
61+
# keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
62+
# targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
63+
# vstsFeed: 'npm-vscode'
64+
# condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
65+
66+
# - script: |
67+
# set -e
68+
# yarn postinstall
69+
# displayName: Run postinstall scripts
70+
# condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
7171

7272
- script: |
7373
set -e

build/azure-pipelines/linux/product-build-linux-arm.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,30 @@ steps:
4444
git merge $(node -p "require('./package.json').distro")
4545
displayName: Merge distro
4646

47-
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
48-
inputs:
49-
keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
50-
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
51-
vstsFeed: 'npm-vscode'
47+
# - task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
48+
# inputs:
49+
# keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
50+
# targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
51+
# vstsFeed: 'npm-vscode'
5252

5353
- script: |
5454
set -e
55-
yarn --frozen-lockfile
55+
CHILD_CONCURRENCY=1 yarn --frozen-lockfile
5656
displayName: Install dependencies
57-
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
58-
59-
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
60-
inputs:
61-
keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
62-
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
63-
vstsFeed: 'npm-vscode'
64-
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
65-
66-
- script: |
67-
set -e
68-
yarn postinstall
69-
displayName: Run postinstall scripts
70-
condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
57+
# condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
58+
59+
# - task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
60+
# inputs:
61+
# keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
62+
# targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
63+
# vstsFeed: 'npm-vscode'
64+
# condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
65+
66+
# - script: |
67+
# set -e
68+
# yarn postinstall
69+
# displayName: Run postinstall scripts
70+
# condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
7171

7272
- script: |
7373
set -e

build/azure-pipelines/linux/product-build-linux.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,30 @@ steps:
3636
git merge $(node -p "require('./package.json').distro")
3737
displayName: Merge distro
3838

39-
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
40-
inputs:
41-
keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
42-
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
43-
vstsFeed: 'npm-vscode'
39+
# - task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
40+
# inputs:
41+
# keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
42+
# targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
43+
# vstsFeed: 'npm-vscode'
4444

4545
- script: |
4646
set -e
47-
yarn --frozen-lockfile
47+
CHILD_CONCURRENCY=1 yarn --frozen-lockfile
4848
displayName: Install dependencies
49-
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
50-
51-
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
52-
inputs:
53-
keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
54-
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
55-
vstsFeed: 'npm-vscode'
56-
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
57-
58-
- script: |
59-
set -e
60-
yarn postinstall
61-
displayName: Run postinstall scripts
62-
condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
49+
# condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
50+
51+
# - task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
52+
# inputs:
53+
# keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
54+
# targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
55+
# vstsFeed: 'npm-vscode'
56+
# condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
57+
58+
# - script: |
59+
# set -e
60+
# yarn postinstall
61+
# displayName: Run postinstall scripts
62+
# condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
6363

6464
- script: |
6565
set -e

build/azure-pipelines/win32/product-build-win32.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ steps:
3838
exec { git merge $(node -p "require('./package.json').distro") }
3939
displayName: Merge distro
4040

41-
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
42-
inputs:
43-
keyfile: '.build/arch, .yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
44-
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
45-
vstsFeed: 'npm-vscode'
41+
# - task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
42+
# inputs:
43+
# keyfile: '.build/arch, .yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
44+
# targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
45+
# vstsFeed: 'npm-vscode'
4646

4747
- powershell: |
4848
. build/azure-pipelines/win32/exec.ps1
@@ -51,21 +51,21 @@ steps:
5151
$env:CHILD_CONCURRENCY="1"
5252
exec { yarn --frozen-lockfile }
5353
displayName: Install dependencies
54-
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
55-
56-
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
57-
inputs:
58-
keyfile: '.build/arch, .yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
59-
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
60-
vstsFeed: 'npm-vscode'
61-
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
62-
63-
- powershell: |
64-
. build/azure-pipelines/win32/exec.ps1
65-
$ErrorActionPreference = "Stop"
66-
exec { yarn postinstall }
67-
displayName: Run postinstall scripts
68-
condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
54+
# condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
55+
56+
# - task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
57+
# inputs:
58+
# keyfile: '.build/arch, .yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
59+
# targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
60+
# vstsFeed: 'npm-vscode'
61+
# condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
62+
63+
# - powershell: |
64+
# . build/azure-pipelines/win32/exec.ps1
65+
# $ErrorActionPreference = "Stop"
66+
# exec { yarn postinstall }
67+
# displayName: Run postinstall scripts
68+
# condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
6969

7070
- powershell: |
7171
. build/azure-pipelines/win32/exec.ps1

0 commit comments

Comments
 (0)