Skip to content
Snippets Groups Projects
Commit 4b41d1b8 authored by Jamie Magee's avatar Jamie Magee Committed by Rhys Arkins
Browse files

chore(ci): use stable cache task (#4819)

The public documentation hasn't been updated, but the task is available. See [here](https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/CacheV2).

Fixes #4757
parent 5bfdf014
No related branches found
No related tags found
No related merge requests found
......@@ -26,20 +26,18 @@ steps:
fetchDepth: 5
path: renovate
- task: CacheBeta@0
- task: Cache@2
inputs:
key: yarn_cache | $(Agent.OS) | $(Build.SourcesDirectory)/yarn.lock
path: $(YARN_CACHE_FOLDER)
displayName: Cache Yarn packages
continueOnError: true
# does not work on linux or mac :-(
- task: CacheBeta@0
- task: Cache@2
inputs:
key: yarn | "$(nodeVersion)" | $(Agent.OS) | $(Build.SourcesDirectory)/yarn.lock
path: $(Build.SourcesDirectory)/node_modules
displayName: Cache node_modules
condition: eq(variables['Agent.OS'], 'Windows_NT')
continueOnError: true
- bash: |
......
......@@ -12,7 +12,6 @@ pr:
variables:
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
CI: true
AZP_CACHING_TAR: true
jobs:
- job: 'Windows'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment