mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Use npm cache
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user