Add npm caching

This commit is contained in:
2024-05-26 23:30:21 +02:00
parent c026b0da0e
commit da568b825f
+3 -1
View File
@@ -3,7 +3,7 @@ name: Deploy static content to Pages
on:
push:
pull_request:
branches: ['main']
branches: [ 'main' ]
workflow_dispatch:
@@ -28,6 +28,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm install --frozen-lockfile
- name: Build project
run: npm run check-all
@@ -49,6 +50,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm install --frozen-lockfile
- name: Build project
run: npm run build-only