mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 03:10:46 -05:00
Cache NPM packages by package.json
This commit is contained in:
parent
5fce20ef70
commit
3bce902220
@ -247,11 +247,21 @@ jobs:
|
|||||||
echo "Last Commit Message:" && git log -1 --pretty=%B
|
echo "Last Commit Message:" && git log -1 --pretty=%B
|
||||||
shell: bash
|
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
|
- name: Install Dependencies
|
||||||
|
if: steps.cache-npm-dependencies.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cd /workspace/SPT-AKI/Build/server/project
|
cd /workspace/SPT-AKI/Build/server/project
|
||||||
rm -rf package-lock.json node_modules
|
rm -rf node_modules
|
||||||
npm cache clean --force
|
|
||||||
npm install
|
npm install
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user