0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-12 16:50:45 -05:00

Cache NPM packages by package.json

This commit is contained in:
Refringe 2024-03-28 20:12:15 -04:00
parent 5fce20ef70
commit 3bce902220
Signed by: Refringe
GPG Key ID: 7715B85B4A6306ED

View File

@ -247,11 +247,21 @@ jobs:
echo "Last Commit Message:" && git log -1 --pretty=%B
shell: bash
- name: Cache NPM Dependencies
id: cache-npm-dependencies
uses: actions/cache@v4
with:
path: |
/workspace/SPT-AKI/Build/server/project/node_modules
key: npm-dependencies-${{ hashFiles('/workspace/SPT-AKI/Build/server/project/package.json') }}
restore-keys: |
npm-dependencies-
- name: Install Dependencies
if: steps.cache-npm-dependencies.outputs.cache-hit != 'true'
run: |
cd /workspace/SPT-AKI/Build/server/project
rm -rf package-lock.json node_modules
npm cache clean --force
rm -rf node_modules
npm install
shell: bash