Skip to content

Commit

Permalink
Merge pull request #5875 from dnnsoftware/azure-pipelines-yarn-cache-fix
Browse files Browse the repository at this point in the history
Fixed a CI issue that prevented yarn package caching
  • Loading branch information
valadas committed Nov 28, 2023
2 parents c3f4725 + 5df11c8 commit 9d99b0c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ pr:

steps:

- task: PowerShell@2
displayName: 'Create Yarn Cache Folder'
inputs:
targetType: 'inline'
script: |
$yarnCacheFolder = "$(YARN_CACHE_FOLDER)"
if (-not (Test-Path $yarnCacheFolder)) {
Write-Host "Creating Yarn cache folder at $yarnCacheFolder"
New-Item -ItemType Directory -Path $yarnCacheFolder -Force
} else {
Write-Host "Yarn cache folder already exists."
}
- task: Cache@2
displayName: Cache Yarn packages
inputs:
Expand Down

0 comments on commit 9d99b0c

Please sign in to comment.