Skip to content

Commit f20d392

Browse files
committed
🎨 Updated default node version to 24
no ref - bump default node version to 24 - widen engines block to include node 24 - bump node types to 24
1 parent dc02641 commit f20d392

20 files changed

Lines changed: 1469 additions & 656 deletions

.changeset/proud-clocks-reflect.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
"@tryghost/adapter-base-cache": none
3+
"@tryghost/adapter-base-scheduling": none
4+
"@tryghost/adapter-base-sso": none
5+
"@tryghost/kg-card-factory": none
6+
"@tryghost/kg-clean-basic-html": none
7+
"@tryghost/kg-converters": none
8+
"@tryghost/kg-default-cards": none
9+
"@tryghost/kg-default-nodes": none
10+
"@tryghost/kg-default-transforms": none
11+
"@tryghost/kg-markdown-html-renderer": none
12+
"@tryghost/kg-utils": none
13+
"ghost-storage-base": none
14+
---
15+
16+
Update node engines range

.github/renovate.json5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@
283283
// Node.js runtime declared in `engines`, not a dependency — so a hard
284284
// version cap is the only lever. Raise it when we bump the Node engine.
285285
{
286-
description: 'Cap @types/node at the installed Node major (engines: ^22.23.1)',
286+
description: 'Cap @types/node at the installed Node major (engines: ^22.23.1 || ^24.20.0)',
287287
matchPackageNames: ['@types/node'],
288-
allowedVersions: '<23',
288+
allowedVersions: '<25',
289289
},
290290

291291
// 2. Every other @types/* is grouped WITH the runtime package it describes

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
env:
1616
FORCE_COLOR: 1
1717
HEAD_COMMIT: ${{ github.sha }}
18-
NODE_VERSION: 22.23.1
18+
NODE_VERSION: 24.20.0
1919
# Disable v8-compile-cache to prevent intermittent V8 deserializer crashes
2020
# when multiple parallel Nx workers race to read/write shared bytecode cache
2121
# files. The cache lives in /tmp and is discarded after each run anyway,
@@ -225,10 +225,12 @@ jobs:
225225
226226
- name: Define Node test matrix
227227
# Node lines the unit / legacy / acceptance suites must keep passing on.
228-
# test:unit's Nx cache is keyed on `node -v` (nx.json) so each leg runs.
228+
# First entry is NODE_VERSION, the line Ghost ships and instruments
229+
# coverage on. test:unit's Nx cache is keyed on `node -v` (nx.json) so
230+
# each leg really runs.
229231
id: node_matrix
230232
run: |
231-
echo 'matrix=["22.23.1", "24.20.0"]' >> $GITHUB_OUTPUT
233+
echo "matrix=[\"$NODE_VERSION\", \"22.23.1\"]" >> "$GITHUB_OUTPUT"
232234
233235
- name: Start Nx Cloud CI run
234236
run: pnpm nx start-ci-run

.github/workflows/e2e-runner-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525
- 'package.json'
2626

2727
env:
28-
NODE_VERSION: 22.23.1
28+
NODE_VERSION: 24.20.0
2929

3030
permissions:
3131
contents: read

.github/workflows/koenig-demo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919
cancel-in-progress: true
2020

2121
env:
22-
NODE_VERSION: 22.23.1
22+
NODE_VERSION: 24.20.0
2323

2424
jobs:
2525
deploy:

.github/workflows/publish-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ concurrency:
4040
cancel-in-progress: false
4141

4242
env:
43-
NODE_VERSION: 22.23.1
43+
NODE_VERSION: 24.20.0
4444

4545
jobs:
4646
publish:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ on:
2626

2727
env:
2828
FORCE_COLOR: 1
29-
NODE_VERSION: 22.23.1
29+
NODE_VERSION: 24.20.0
3030
concurrency:
3131
group: ${{ github.workflow }}
3232
cancel-in-progress: false

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.23.1
1+
24.20.0

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.23.1
1+
24.20.0

Dockerfile.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# duplicated node_modules (~600MB) and the admin build (~80MB) and inflated every
2323
# image pull.
2424

25-
ARG NODE_VERSION=22.23.1
25+
ARG NODE_VERSION=24.20.0
2626

2727
# ---- deploy: build closure + self-contained app dir (build-only, not shipped) ----
2828
FROM node:$NODE_VERSION-bookworm-slim AS deploy

0 commit comments

Comments
 (0)