Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ jobs:
key: hugo-${{ runner.os }}-${{ hashFiles('go.sum', 'package-lock.json') }}
restore-keys: |
hugo-${{ runner.os }}-
- name: Sync Hugo npm metadata
# Regenerates packages/hugoautogen/hugo_packagemeta.json on the runner. Hugo
# hashes package.json into that checksum, so any version bump (e.g. from
# Dependabot) would otherwise trip the "npm dependencies are out of sync"
# warning, which --panicOnWarning turns into a build failure. Runs before
# npm ci so a real change to module dependencies still fails loudly as a
# lock-file mismatch.
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
run: hugo mod npm pack
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
Expand Down
Loading