Skip to content

Commit 7c90427

Browse files
committed
Fix cache-dependency-path in GitHub Actions workflow to ensure correct lockfile reference
1 parent e0637a5 commit 7c90427

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/astro.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ jobs:
5959
with:
6060
node-version: "20"
6161
cache: ${{ steps.detect-package-manager.outputs.manager }}
62-
# Fix the path to the lockfile by removing the BUILD_PATH variable
63-
# since we're already in the correct directory
64-
cache-dependency-path: ${{ steps.detect-package-manager.outputs.lockfile }}
62+
# Include BUILD_PATH to ensure the correct full path to the lockfile
63+
cache-dependency-path: ${{ env.BUILD_PATH }}/${{ steps.detect-package-manager.outputs.lockfile }}
6564
- name: Setup Pages
6665
id: pages
6766
uses: actions/configure-pages@v5

0 commit comments

Comments
 (0)