Skip to content

Commit 0c741e1

Browse files
committed
Add site built caching
1 parent 5134bc8 commit 0c741e1

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/build-site.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,22 @@ jobs:
1414

1515
runs-on: ubuntu-latest
1616

17-
strategy:
18-
matrix:
19-
node-version: ["13.14"]
20-
2117
steps:
2218
- uses: actions/checkout@v2
23-
- name: Use Node.js ${{ matrix.node-version }}
19+
- name: Use Node.js
2420
uses: actions/setup-node@v1
2521
with:
26-
node-version: ${{ matrix.node-version }}
27-
- run: npm ci
22+
node-version: "13.14"
23+
24+
- name: Cache dependencies
25+
uses: actions/cache@v2
26+
with:
27+
path: ~/.npm
28+
key: npm-${{ hashFiles('package-lock.json') }}
29+
restore-keys: npm-
30+
31+
- name: Install dependencies
32+
run: npm ci --ignore-scripts
2833
- run: npm run check-format
2934
- run: npm run build
3035
- name: Save build output

0 commit comments

Comments
 (0)