skip dependency step when cache exists

This commit is contained in:
dkanada 2020-03-17 01:49:43 +09:00
parent a0c5920e71
commit fa5e1feaab

View File

@ -40,9 +40,11 @@ jobs:
inputs:
key: 'yarn | yarn.lock'
path: 'node_modules'
cacheHitVar: CACHE_RESTORED
- script: 'yarn install --pure-lockfile'
displayName: 'Install Dependencies'
condition: ne(variables.CACHE_RESTORED, 'true')
- script: 'yarn build:development'
displayName: 'Build Development'