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
12 changes: 12 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,16 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
# Guard against the committed output of scripts/generate-redirects.mjs
# drifting from content/blog. `prebuild` regenerates these during every
# deploy, so stale copies never break the live site -- which is exactly
# why the drift goes unnoticed until someone diffs them by hand.
- name: Routing artifacts are in sync with content/blog
run: |
npm run blog:redirects
if ! git diff --quiet -- public/_redirects public/_worker.js public/_routes.json vercel.json; then
echo "::error::Routing artifacts are stale. Run 'npm run blog:redirects' and commit the result."
git diff --stat -- public/_redirects public/_worker.js public/_routes.json vercel.json
exit 1
fi
- run: npm run build
Loading