Skip to content

Commit 6672f4f

Browse files
Add NodeJS installation to CI
1 parent e73ab2c commit 6672f4f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ jobs:
2121
with:
2222
hugo-version: '0.110.0'
2323
# extended: true
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: '18'
29+
cache: 'npm'
30+
# The action defaults to search for the dependency file (package-lock.json,
31+
# npm-shrinkwrap.json or yarn.lock) in the repository root, and uses its
32+
# hash as a part of the cache key.
33+
# https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data
34+
cache-dependency-path: '**/package-lock.json'
2435

2536
- name: Build
2637
run: hugo --minify

0 commit comments

Comments
 (0)