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:
commit
dea7b0b2fe
4
.github/workflows/run-lint.yaml
vendored
4
.github/workflows/run-lint.yaml
vendored
@ -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'
|
||||
|
4
.github/workflows/run-test.yaml
vendored
4
.github/workflows/run-test.yaml
vendored
@ -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'
|
||||
|
4
.github/workflows/run-types.yaml
vendored
4
.github/workflows/run-types.yaml
vendored
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user