Skip to content

Commit

Permalink
Update use-cache-yarn.yml
Browse files Browse the repository at this point in the history
Use `yarn cache dir` to figure cache directory
  • Loading branch information
ManasJayanth committed Jul 15, 2020
1 parent 9d0fe9c commit e732fa2
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .ci/utils/use-cache-yarn.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
steps:
- task: Cache@2
inputs:
key: 'npm | "$(Agent.OS)" | "$(Build.SourcesDirectory)/npm-cli/yarn.lock"'
key: 'yarn | "$(Agent.OS)" | "$(Build.SourcesDirectory)/npm-cli/yarn.lock"'
restoreKeys: |
npm | "$(Agent.OS)"
npm
path: $(HOME)/.yarn
yarn | "$(Agent.OS)"
yarn
path: $(yarn cache dir)
displayName: Cache yarn
condition: ne(variables['AGENT.OS'], 'Windows_NT')
- task: Cache@2
inputs:
key: 'npm | "$(Agent.OS)" | "$(Build.SourcesDirectory)/npm-cli/yarn.lock"'
restoreKeys: |
npm | "$(Agent.OS)"
npm
path: $(AppData)\Local\Yarn\Cache\v2
displayName: Cache yarn
condition: eq(variables['AGENT.OS'], 'Windows_NT')

0 comments on commit e732fa2

Please sign in to comment.