Add yarn cache to drone #312
|
@ -26,14 +26,14 @@ steps:
|
|||
region: fr-par
|
||||
path_style: true
|
||||
mount:
|
||||
- '/cache'
|
||||
- '.cache'
|
||||
|
||||
- name: dependencies
|
||||
image: node:13
|
||||
pull: true
|
||||
group: build-static
|
||||
environment:
|
||||
YARN_CACHE_FOLDER: /cache
|
||||
YARN_CACHE_FOLDER: .cache
|
||||
commands:
|
||||
- yarn --frozen-lockfile --network-timeout 100000
|
||||
depends_on:
|
||||
|
@ -54,7 +54,7 @@ steps:
|
|||
region: fr-par
|
||||
path_style: true
|
||||
mount:
|
||||
- '/cache'
|
||||
- '.cache'
|
||||
depends_on:
|
||||
- dependencies
|
||||
|
||||
|
@ -63,7 +63,7 @@ steps:
|
|||
pull: true
|
||||
group: build-static
|
||||
environment:
|
||||
YARN_CACHE_FOLDER: /cache
|
||||
YARN_CACHE_FOLDER: .cache
|
||||
commands:
|
||||
- yarn run lint
|
||||
- yarn run build
|
||||
|
|
Reference in New Issue
Block a user