mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-16 07:19:51 +02:00
Cache Yarn on Azure
This commit is contained in:
parent
acd167e3ff
commit
197f064fd5
@ -14,6 +14,7 @@ variables:
|
|||||||
sentryOrg: 'servarr'
|
sentryOrg: 'servarr'
|
||||||
sentryUrl: 'https://sentry.servarr.com'
|
sentryUrl: 'https://sentry.servarr.com'
|
||||||
dotnetVersion: '3.1.401'
|
dotnetVersion: '3.1.401'
|
||||||
|
yarnCacheFolder: $(Pipeline.Workspace)/.yarn
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branches:
|
branches:
|
||||||
@ -139,10 +140,19 @@ stages:
|
|||||||
- checkout: self
|
- checkout: self
|
||||||
submodules: true
|
submodules: true
|
||||||
fetchDepth: 1
|
fetchDepth: 1
|
||||||
|
- task: Cache@2
|
||||||
|
inputs:
|
||||||
|
key: 'yarn | "$(osName)" | yarn.lock'
|
||||||
|
restoreKeys: |
|
||||||
|
yarn | "$(osName)"
|
||||||
|
yarn
|
||||||
|
path: $(yarnCacheFolder)
|
||||||
|
displayName: Cache Yarn packages
|
||||||
- bash: ./build.sh --frontend
|
- bash: ./build.sh --frontend
|
||||||
displayName: Build Radarr Frontend
|
displayName: Build Radarr Frontend
|
||||||
env:
|
env:
|
||||||
FORCE_COLOR: 0
|
FORCE_COLOR: 0
|
||||||
|
YARN_CACHE_FOLDER: $(yarnCacheFolder)
|
||||||
- publish: $(outputFolder)
|
- publish: $(outputFolder)
|
||||||
artifact: '$(osName)Frontend'
|
artifact: '$(osName)Frontend'
|
||||||
displayName: Publish Frontend
|
displayName: Publish Frontend
|
||||||
@ -750,10 +760,19 @@ stages:
|
|||||||
- checkout: self
|
- checkout: self
|
||||||
submodules: true
|
submodules: true
|
||||||
fetchDepth: 1
|
fetchDepth: 1
|
||||||
|
- task: Cache@2
|
||||||
|
inputs:
|
||||||
|
key: 'yarn | "$(osName)" | yarn.lock'
|
||||||
|
restoreKeys: |
|
||||||
|
yarn | "$(osName)"
|
||||||
|
yarn
|
||||||
|
path: $(yarnCacheFolder)
|
||||||
|
displayName: Cache Yarn packages
|
||||||
- bash: ./build.sh --lint
|
- bash: ./build.sh --lint
|
||||||
displayName: Lint Radarr Frontend
|
displayName: Lint Radarr Frontend
|
||||||
env:
|
env:
|
||||||
FORCE_COLOR: 0
|
FORCE_COLOR: 0
|
||||||
|
YARN_CACHE_FOLDER: $(yarnCacheFolder)
|
||||||
|
|
||||||
- job: Analyze_Frontend
|
- job: Analyze_Frontend
|
||||||
displayName: Frontend
|
displayName: Frontend
|
||||||
|
Loading…
Reference in New Issue
Block a user