Compare commits

...

2 Commits

Author SHA1 Message Date
Techno Tim
4fc31aabc3
Merge a27d783451 into e9191d7972 2025-02-24 05:27:18 +01:00
Timothy Stewart
a27d783451 feat(ci): base cache key on package-lock.json 2025-02-23 22:27:13 -06:00

View File

@ -21,12 +21,19 @@ jobs:
cache: 'npm' cache: 'npm'
cache-dependency-path: '**/package-lock.json' 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 - name: Install Dependencies and Build
run: | run: |
npm ci npm ci
npx prisma generate npx prisma generate
npm run build:prod npm run build:prod
env: env:
CI: true CI: true
@ -35,4 +42,4 @@ jobs:
with: with:
path: ~/.npm/_npx path: ~/.npm/_npx
key: prisma-binary-${{ runner.os }}-${{ hashFiles('package-lock.json') }} key: prisma-binary-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: prisma-binary-${{ runner.os }}- restore-keys: prisma-binary-${{ runner.os }}-