Use npm cache

This commit is contained in:
2025-08-25 12:59:40 +03:00
Unverified
parent 466c6107ba
commit 8f80aca7fd
+18
View File
@@ -33,6 +33,24 @@ jobs:
with:
node-version: '24'
- name: Cache npm (Linux/macOS)
if: runner.os != 'Windows'
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ runner.os }}-node-24-${{ hashFiles('package.json') }}
restore-keys: |
npm-${{ runner.os }}-node-24-
- name: Cache npm (Windows)
if: runner.os == 'Windows'
uses: actions/cache@v4
with:
path: ~\AppData\Local\npm-cache
key: npm-${{ runner.os }}-node-24-${{ hashFiles('package.json') }}
restore-keys: |
npm-${{ runner.os }}-node-24-
- name: Install root deps (no scripts)
run: npm install --ignore-scripts --no-audit --no-fund