ℹ️ 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' if: needs.job_get_metadata.outputs.changed_any_code == 'true'
strategy: strategy:
matrix: matrix:
node: [ '18.12.1' ] node: [ '18.12.1', '20.11.1' ]
name: Unit tests (Node ${{ matrix.node }}) name: Unit tests (Node ${{ matrix.node }})
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -455,7 +455,7 @@ jobs:
if: needs.job_get_metadata.outputs.changed_core == 'true' if: needs.job_get_metadata.outputs.changed_core == 'true'
strategy: strategy:
matrix: matrix:
node: [ '18.12.1' ] node: [ '18.12.1', '20.11.1' ]
env: env:
- DB: mysql8 - DB: mysql8
NODE_ENV: testing-mysql NODE_ENV: testing-mysql

View File

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

View File

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