ci: add caching of npm modules
This commit is contained in:
committed by
Mathias Schopmans
parent
e1a24ad147
commit
e9143da530
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@@ -13,6 +13,14 @@ jobs:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "lts/*"
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.npm
|
||||
**/node_modules
|
||||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-npm
|
||||
- run: npm ci
|
||||
- run: npm run build:data
|
||||
- run: npm run build
|
||||
|
||||
Reference in New Issue
Block a user