Skip to content

Commit 47b8db0

Browse files
Setup latest node in doc build ci
This updates the doc build part of ci to install the latest version of node rather than relying on whatever version happens to be around. This also adds caching to the make-docs workflow action.
1 parent 7f4ebba commit 47b8db0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ jobs:
7373
with:
7474
python-version: '3.x'
7575

76+
- name: Setup Node
77+
uses: actions/setup-node@v6
78+
with:
79+
node-version: latest
80+
cache: npm
81+
cache-dependency-path: "docs/landing-page/package-lock.json"
82+
7683
- name: Install doc dependencies
7784
run: cd docs && make install
7885

.github/workflows/make-docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
uses: actions/setup-node@v6
4141
with:
4242
node-version: latest
43+
cache: npm
44+
cache-dependency-path: "docs/landing-page/package-lock.json"
4345

4446
- name: Build JavaDocs
4547
# run if 'javadocs' is not set to false

0 commit comments

Comments
 (0)