|
11 | 11 | substitutions: |
12 | 12 | # Update when a new Prince version is released: https://www.princexml.com/latest/ |
13 | 13 | # python:3.12 is based on Debian Trixie (13), so use the debian13 package. |
14 | | - _PRINCE_PACKAGE: 'prince_16.2-1_debian13_amd64.deb' |
| 14 | + _PRINCE_PACKAGE: 'prince_16.1-1_debian13_amd64.deb' |
15 | 15 |
|
16 | 16 | steps: |
17 | 17 | # ───────────────────────────────────────────────────────────────────────── |
18 | 18 | # Step 1: Install dependencies, generate all chapters, run full test suite. |
19 | | - # Uses python:3.12 (Debian Trixie) and installs Node 24 at runtime. |
| 19 | + # Uses python:3.12 (Debian Trixie) and installs Node 20 at runtime. |
20 | 20 | # node_modules persist in /workspace and are reused by later steps; |
21 | 21 | # Python packages are re-installed per step. |
22 | 22 | # ───────────────────────────────────────────────────────────────────────── |
|
28 | 28 | - '-c' |
29 | 29 | - | |
30 | 30 | set -e |
31 | | - # Install Node.js 24 (nodesource setup script also runs apt-get update) |
32 | | - curl -fsSL https://deb.nodesource.com/setup_24.x | bash - |
| 31 | + # Install Node.js 20 (nodesource setup script also runs apt-get update) |
| 32 | + curl -fsSL https://deb.nodesource.com/setup_20.x | bash - |
33 | 33 | apt-get install -y nodejs |
34 | 34 |
|
35 | 35 | # Install Python dependencies |
@@ -67,10 +67,13 @@ steps: |
67 | 67 | set -e |
68 | 68 | apt-get update -qq |
69 | 69 |
|
70 | | - # Install Node.js 20 |
| 70 | + # Install Node.js 20 (matches step 1 so node_modules are reused correctly) |
71 | 71 | curl -fsSL https://deb.nodesource.com/setup_20.x | bash - |
72 | 72 | apt-get install -y nodejs |
73 | 73 |
|
| 74 | + # Re-generate chapters (idempotent; guards against workspace persistence issues) |
| 75 | + npm run generate |
| 76 | +
|
74 | 77 | # Update static-asset cache-busting hashes before deploying |
75 | 78 | npm run timestamps |
76 | 79 |
|
|
0 commit comments