File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 - name : Checkout
2121 uses : actions/checkout@v5
2222
23- - name : LikeC4 code generation
24- uses : likec4/actions@d36a6b8c87c1d540a3737302808755db435183b0 # v1.89.0
25- with :
26- codegen : react
27- path : likec4_src
28- output : likec4_react/likec4.generated.js
29-
30- - name : LikeC4 PNG export
31- uses : likec4/actions@d36a6b8c87c1d540a3737302808755db435183b0 # v1.89.0
32- with :
33- export : png
34- path : likec4_src
35- output : public/images/likec4
36-
3723 - name : Setup Node
3824 uses : actions/setup-node@v5
3925 with :
5440 - name : Install dependencies
5541 run : npm ci
5642
43+ # LikeC4 runs from the repo's own dependency rather than likec4/actions,
44+ # whose image pins Playwright 1.56.1 browsers and cannot run likec4 1.58+.
45+ # This supports manual layout snapshots rendering the same in CI as they do locally.
46+ - name : LikeC4 code generation
47+ run : npm run likec4:codegen
48+
49+ - name : Install Playwright Chromium
50+ run : npx playwright install --with-deps chromium
51+
52+ - name : LikeC4 PNG export
53+ run : npx likec4 export png likec4_src -o public/images/likec4
54+
5755 - name : Check build
5856 run : npm run build
Original file line number Diff line number Diff line change 2323 - name : Checkout
2424 uses : actions/checkout@v5
2525
26- - name : LikeC4 code generation
27- uses : likec4/actions@d36a6b8c87c1d540a3737302808755db435183b0 # v1.89.0
28- with :
29- codegen : react
30- path : likec4_src
31- output : likec4_react/likec4.generated.js
32-
33- - name : LikeC4 PNG export
34- uses : likec4/actions@d36a6b8c87c1d540a3737302808755db435183b0 # v1.89.0
35- with :
36- export : png
37- path : likec4_src
38- output : public/images/likec4
39-
4026 - name : Setup Node
4127 uses : actions/setup-node@v5
4228 with :
5844 - name : Install dependencies
5945 run : npm ci
6046
47+ # LikeC4 runs from the repo's own dependency rather than likec4/actions,
48+ # whose image pins Playwright 1.56.1 browsers and cannot run likec4 1.58+.
49+ # This supports manual layout snapshots rendering the same in CI as they do locally.
50+ - name : LikeC4 code generation
51+ run : npm run likec4:codegen
52+
53+ - name : Install Playwright Chromium
54+ run : npx playwright install --with-deps chromium
55+
56+ - name : LikeC4 PNG export
57+ run : npx likec4 export png likec4_src -o public/images/likec4
58+
6159 # Must use `npm run build` (not `npx next build`) so the postbuild
6260 # Pagefind step runs and writes search assets into out/_pagefind.
6361 - name : Build static site
You can’t perform that action at this time.
0 commit comments