Skip to content

Commit 891710e

Browse files
taeaclaude
authored andcommitted
Add CSS build check to CI
- Add Node.js setup and npm ci to CI workflow - Verify compiled.css is up-to-date by rebuilding and checking for diffs - Add package-lock.json to lock dependency versions - Remove package-lock.json from .gitignore 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 713a660 commit 891710e

File tree

3 files changed

+1527
-1
lines changed

3 files changed

+1527
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ jobs:
2424
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2525
with:
2626
fetch-depth: 1
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: '20'
31+
cache: 'npm'
32+
- name: Install npm dependencies
33+
run: npm ci
34+
- name: Check CSS is up-to-date
35+
run: |
36+
npm run build-css
37+
git diff --exit-code stylesheets/compiled.css || (echo "Error: compiled.css is out of date. Run 'npm run build-css' and commit the changes." && exit 1)
2738
- name: Setup Ruby
2839
uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
2940
with:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ vendor
99
bin
1010
.jekyll*
1111
node_modules/
12-
package-lock.json
1312
_figma/
1413
_svg-backup/

0 commit comments

Comments
 (0)