mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-27 13:48:51 +01:00
build(playwright.yml): add caching for API and Client dependencies
Add caching for API and Client dependencies to speed up the build process.
This commit is contained in:
parent
6b1b0f967d
commit
19183678a3
1 changed files with 18 additions and 1 deletions
19
.github/workflows/playwright.yml
vendored
19
.github/workflows/playwright.yml
vendored
|
|
@ -14,11 +14,28 @@ jobs:
|
|||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
cache: 'npm'
|
||||
|
||||
- name: Cache API dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ./api/node_modules
|
||||
key: api-${{ runner.os }}-node-${{ hashFiles('./api/package-lock.json') }}
|
||||
restore-keys: |
|
||||
api-${{ runner.os }}-node-
|
||||
|
||||
- name: Install API dependencies
|
||||
working-directory: ./api
|
||||
run: npm ci
|
||||
|
||||
- name: Cache Client dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ./client/node_modules
|
||||
key: client-${{ runner.os }}-node-${{ hashFiles('./client/package-lock.json') }}
|
||||
restore-keys: |
|
||||
client-${{ runner.os }}-node-
|
||||
|
||||
- name: Install Client dependencies
|
||||
working-directory: ./client
|
||||
run: npm ci
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue