Skip to content

Commit b3d71fd

Browse files
fix: cache path
1 parent 47602df commit b3d71fd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

azure-pipeline/build_frontend.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ jobs:
5151
inputs:
5252
versionSpec: ${{ parameters.nodeVersion }}
5353

54+
# ---------------------------------------------------
55+
# Prepare Cache Directory
56+
# ---------------------------------------------------
57+
- script: mkdir -p $(System.DefaultWorkingDirectory)/frontend/.yarn/cache
58+
displayName: "📁 Create cache directory"
59+
workingDirectory: $(System.DefaultWorkingDirectory)
60+
5461
# ---------------------------------------------------
5562
# Cache Dependencies
5663
# ---------------------------------------------------
@@ -61,7 +68,7 @@ jobs:
6168
restoreKeys: |
6269
yarn | "$(Agent.OS)"
6370
yarn
64-
path: $(Pipeline.Workspace)/.yarn/cache
71+
path: $(System.DefaultWorkingDirectory)/frontend/.yarn/cache
6572
continueOnError: true
6673

6774
# ---------------------------------------------------
@@ -74,7 +81,7 @@ jobs:
7481
displayName: "📥 Install dependencies"
7582
workingDirectory: $(System.DefaultWorkingDirectory)/frontend
7683
env:
77-
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn/cache
84+
YARN_CACHE_FOLDER: $(System.DefaultWorkingDirectory)/frontend/.yarn/cache
7885
7986
# ---------------------------------------------------
8087
# Code Quality Checks (PR only)

0 commit comments

Comments
 (0)