Skip to content

Commit f9101e3

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 cedaabb commit f9101e3

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.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.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.json"
4345

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

0 commit comments

Comments
 (0)