Add npm caching
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user