fix: really fix the cache key & try built-in cache

This commit is contained in:
2023-10-26 15:31:49 +02:00
parent e808c7e59c
commit 3b1dcdc718
+4 -2
View File
@@ -17,14 +17,16 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18.x node-version: 18.x
cache: 'npm'
cache-dependency-path: frontend/yarn.lock
- name: Cache NPM packages - name: Cache NPM packages
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
key: npm-${{ hashFiles('./frontend/package-lock.json') }} key: npm-${{ hashFiles('./frontend/yarn.lock') }}
path: | path: |
./frontend/node_modules ./frontend/node_modules
restore-keys: | restore-keys: |
npm-${{ hashFiles('./frontend/package-lock.json') }} npm-${{ hashFiles('./frontend/yarn.lock') }}
npm- npm-
- name: Yarn Install - name: Yarn Install
run: | run: |