2525
2626 exec { git config user.email "vscode@microsoft.com" }
2727 exec { git config user.name "VSCode" }
28+
29+ mkdir .build -ea 0
30+ echo $(VSCODE_ARCH) > .build\arch
2831 displayName : Prepare tooling
2932
3033- powershell : |
3740
3841- task : 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
3942 inputs :
40- keyfile : ' ** /.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
43+ keyfile : ' .build/arch, .yarnrc, remote /.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
4144 targetfolder : ' **/node_modules, !**/node_modules/**/node_modules'
4245 vstsFeed : ' npm-vscode'
4346
@@ -52,11 +55,18 @@ steps:
5255
5356- task : 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
5457 inputs :
55- keyfile : ' ** /.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
58+ keyfile : ' .build/arch, .yarnrc, remote /.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
5659 targetfolder : ' **/node_modules, !**/node_modules/**/node_modules'
5760 vstsFeed : ' npm-vscode'
5861 condition : and(succeeded(), ne(variables['CacheRestored'], 'true'))
5962
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'))
69+
6070- powershell : |
6171 . build/azure-pipelines/win32/exec.ps1
6272 $ErrorActionPreference = "Stop"
0 commit comments