mirror of
https://github.com/jetkvm/cloud-api.git
synced 2025-09-16 08:38:15 +00:00
feat(ci): base cache key on package-lock.json
This commit is contained in:
parent
cf1df9e6ed
commit
a27d783451
9
.github/workflows/pull-request.yml
vendored
9
.github/workflows/pull-request.yml
vendored
@ -21,12 +21,19 @@ jobs:
|
||||
cache: 'npm'
|
||||
cache-dependency-path: '**/package-lock.json'
|
||||
|
||||
- name: Cache NPM dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: npm-cache-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
|
||||
restore-keys: |
|
||||
npm-cache-${{ runner.os }}-
|
||||
|
||||
- name: Install Dependencies and Build
|
||||
run: |
|
||||
npm ci
|
||||
npx prisma generate
|
||||
npm run build:prod
|
||||
|
||||
env:
|
||||
CI: true
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user