0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Added support for Node 22

ref https://linear.app/ghost/issue/ENG-2013/add-node-22-support-to-ghost

- we're adding support for Node 22 because it's now LTS
- this adds the current latest Node 22 version to the package.json for
  Ghost + Admin, and adds Node 22 testing to CI
This commit is contained in:
Daniel Lockyer 2025-02-17 13:52:49 +01:00
parent 7967c43a19
commit 5842b7550c
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View file

@ -430,7 +430,7 @@ jobs:
if: needs.job_setup.outputs.changed_any_code == 'true'
strategy:
matrix:
node: [ '18.12.1', '20.11.1' ]
node: [ '18.12.1', '20.11.1', '22.13.1' ]
name: Unit tests (Node ${{ matrix.node }})
steps:
- uses: actions/checkout@v4
@ -473,7 +473,7 @@ jobs:
if: needs.job_setup.outputs.changed_core == 'true'
strategy:
matrix:
node: [ '18.12.1', '20.11.1' ]
node: [ '18.12.1', '20.11.1', '22.13.1' ]
env:
- DB: mysql8
NODE_ENV: testing-mysql

View file

@ -26,7 +26,7 @@
"lint": "yarn lint:js && yarn lint:hbs"
},
"engines": {
"node": "^18.12.1 || ^20.11.1"
"node": "^18.12.1 || ^20.11.1 || ^22.13.1"
},
"devDependencies": {
"@babel/eslint-parser": "7.23.3",

View file

@ -53,8 +53,8 @@
"prepack": "node monobundle.js"
},
"engines": {
"node": "^18.12.1 || ^20.11.1",
"cli": "^1.26.0"
"node": "^18.12.1 || ^20.11.1 || ^22.13.1",
"cli": "^1.27.0"
},
"dependencies": {
"@extractus/oembed-extractor": "3.2.1",