ℹ️ Added support for Node 20

ref https://linear.app/tryghost/issue/ENG-765/add-support-for-node-20

- this adds support for Node 20 to Ghost and CI, as Node 20 is an LTS
  version and we should pick it up
This commit is contained in:
Daniel Lockyer 2024-03-19 11:02:04 +01:00
parent 8e0ad1a6fb
commit 10e81aeed8
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View File

@ -417,7 +417,7 @@ jobs:
if: needs.job_get_metadata.outputs.changed_any_code == 'true'
strategy:
matrix:
node: [ '18.12.1' ]
node: [ '18.12.1', '20.11.1' ]
name: Unit tests (Node ${{ matrix.node }})
steps:
- uses: actions/checkout@v4
@ -455,7 +455,7 @@ jobs:
if: needs.job_get_metadata.outputs.changed_core == 'true'
strategy:
matrix:
node: [ '18.12.1' ]
node: [ '18.12.1', '20.11.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"
"node": "^18.12.1 || ^20.11.1"
},
"devDependencies": {
"@babel/eslint-parser": "7.23.3",

View File

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