mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-12 14:50:44 -05:00
Dynamically fetch the npm cache directory
This commit is contained in:
parent
d41ea4a6cf
commit
b1604340a8
9
.github/workflows/build.yaml
vendored
9
.github/workflows/build.yaml
vendored
@ -219,12 +219,17 @@ jobs:
|
||||
cache: "npm"
|
||||
cache-dependency-path: "SPT/Build/server/project/package.json"
|
||||
|
||||
- name: Get npm cache directory
|
||||
id: npm-cache-dir
|
||||
shell: pwsh
|
||||
run: echo "dir=$(npm config get cache)" >> ${env:GITHUB_OUTPUT}
|
||||
|
||||
- name: Check NPM Cache
|
||||
id: cache-check
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('SPT/Build/server/project/package.json') }}
|
||||
path: ${{ steps.npm-cache-dir.outputs.dir }}
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user