0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 06:30:43 -05:00

Fix up CI cache (#1073)

- Fixes up the CI cache issue by caching node_modules rather than ~/.npm
- Also explicitly forces it to restore against the same cache key, so
that if package.json is changed a new cache will be created.
This commit is contained in:
Chomp 2025-01-13 09:55:37 +00:00 committed by GitHub
commit dea7b0b2fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -27,10 +27,10 @@ jobs:
id: cache-check
uses: actions/cache@v4
with:
path: ~/.npm
path: ./project/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('./project/package.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-node-${{ hashFiles('./project/package.json') }}
- name: Install NPM Dependencies
if: steps.cache-check.outputs.cache-hit != 'true'

View File

@ -27,10 +27,10 @@ jobs:
id: cache-check
uses: actions/cache@v4
with:
path: ~/.npm
path: ./project/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('./project/package.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-node-${{ hashFiles('./project/package.json') }}
- name: Install NPM Dependencies
if: steps.cache-check.outputs.cache-hit != 'true'

View File

@ -27,10 +27,10 @@ jobs:
id: cache-check
uses: actions/cache@v4
with:
path: ~/.npm
path: ./project/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('./project/package.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-node-${{ hashFiles('./project/package.json') }}
- name: Install NPM Dependencies
if: steps.cache-check.outputs.cache-hit != 'true'