Skip to content

Commit ee770ef

Browse files
aminyaDeeDeeG
andcommitted
CI: Skip npm package cache if not bootstrapping
No need to "save time on network access" if there won't be any network access at all! Co-Authored-By: deedeeg <[email protected]>
1 parent 594447f commit ee770ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

script/vsts/platforms/templates/cache.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,5 @@ steps:
4747
npm_package_cache | "$(Agent.OS)" | "$(BUILD_ARCH)"
4848
npm_package_cache
4949
path: $(Agent.BuildDirectory)/npm_package_cache_dir
50+
condition: or(ne(variables['MainNodeModulesRestored'], 'true'), ne(variables['ScriptNodeModulesRestored'], 'true'), ne(variables['ApmNodeModulesRestored'], 'true'))
51+
# No need to restore network/package cache if bootstrapping will be skipped!

0 commit comments

Comments
 (0)