Skip to content

Commit fb38949

Browse files
committed
downgrade Prince to 16.1 and Node.js to v20
1 parent 35030db commit fb38949

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

cloudbuild.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
substitutions:
1212
# Update when a new Prince version is released: https://www.princexml.com/latest/
1313
# 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'
1515

1616
steps:
1717
# ─────────────────────────────────────────────────────────────────────────
1818
# 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.
2020
# node_modules persist in /workspace and are reused by later steps;
2121
# Python packages are re-installed per step.
2222
# ─────────────────────────────────────────────────────────────────────────
@@ -28,8 +28,8 @@ steps:
2828
- '-c'
2929
- |
3030
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 -
3333
apt-get install -y nodejs
3434
3535
# Install Python dependencies
@@ -67,10 +67,13 @@ steps:
6767
set -e
6868
apt-get update -qq
6969
70-
# Install Node.js 20
70+
# Install Node.js 20 (matches step 1 so node_modules are reused correctly)
7171
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
7272
apt-get install -y nodejs
7373
74+
# Re-generate chapters (idempotent; guards against workspace persistence issues)
75+
npm run generate
76+
7477
# Update static-asset cache-busting hashes before deploying
7578
npm run timestamps
7679

0 commit comments

Comments
 (0)