chore: change recommended and CI node version to v20

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-05-09 11:38:02 +02:00
parent 2967e7cd86
commit 23901d1454
9 changed files with 15 additions and 15 deletions

View file

@ -20,7 +20,7 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
env: env:
NODEJS_VERSION: 18 NODEJS_VERSION: 20
HEAD_COMMIT_HASH: "${{ !!github.event.pull_request && github.event.pull_request.head.sha || github.sha }}" HEAD_COMMIT_HASH: "${{ !!github.event.pull_request && github.event.pull_request.head.sha || github.sha }}"
jobs: jobs:

View file

@ -11,7 +11,7 @@ on:
env: env:
NETLIFY_VERSION: 13.2.2 NETLIFY_VERSION: 13.2.2
NETLIFY_NEXTJS_PLUGIN_VERSION: 4.33.0 NETLIFY_NEXTJS_PLUGIN_VERSION: 4.33.0
NODEJS_VERSION: 18 NODEJS_VERSION: 20
defaults: defaults:
run: run:

View file

@ -29,7 +29,7 @@ permissions:
env: env:
NETLIFY_VERSION: 13.2.2 NETLIFY_VERSION: 13.2.2
NETLIFY_NEXTJS_PLUGIN_VERSION: 4.33.0 NETLIFY_NEXTJS_PLUGIN_VERSION: 4.33.0
NODEJS_VERSION: 18 NODEJS_VERSION: 20
defaults: defaults:
run: run:

View file

@ -11,7 +11,7 @@ on:
branches: [ develop ] branches: [ develop ]
env: env:
NODEJS_VERSION: 18 NODEJS_VERSION: 20
jobs: jobs:
lint: lint:

View file

@ -19,9 +19,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node: [ '16', '18' ] # Are you changing this? Don't forget to update the min. and recommended node version in getting-started.md! node: [ '16', '18', '20' ] # Are you changing this? Don't forget to update the min. and recommended node version in getting-started.md!
include: include:
- node: '18' - node: '20'
coverage: true coverage: true
name: Test and build with NodeJS ${{ matrix.node }} name: Test and build with NodeJS ${{ matrix.node }}
steps: steps:

View file

@ -90,7 +90,7 @@
"@types/express-session": "1.17.7", "@types/express-session": "1.17.7",
"@types/jest": "29.5.1", "@types/jest": "29.5.1",
"@types/mysql": "2.15.21", "@types/mysql": "2.15.21",
"@types/node": "18.16.6", "@types/node": "20.1.1",
"@types/passport-local": "1.0.35", "@types/passport-local": "1.0.35",
"@types/pg": "8.6.6", "@types/pg": "8.6.6",
"@types/source-map-support": "0.5.6", "@types/source-map-support": "0.5.6",

View file

@ -19,7 +19,7 @@ recommend caddy and the provided configuration.
git clone https://github.com/hedgedoc/hedgedoc.git git clone https://github.com/hedgedoc/hedgedoc.git
cd hedgedoc cd hedgedoc
``` ```
2. Install Node.js. You need at least Node 16, but we recommend Node 18. 2. Install Node.js. You need at least Node 16, but we recommend Node 20.
3. Install [Yarn](https://yarnpkg.com/getting-started/install) 3. Install [Yarn](https://yarnpkg.com/getting-started/install)
4. Install Caddy (select one of the two options) 4. Install Caddy (select one of the two options)
- [Download](https://caddyserver.com/) and place the `caddy` binary in `dev-reverse-proxy`. Ensure it is executable with `chmod +x caddy`. Users of macOS may need to run `xattr -d com.apple.quarantine ./caddy` to lift the quarantine for executables from the internet. - [Download](https://caddyserver.com/) and place the `caddy` binary in `dev-reverse-proxy`. Ensure it is executable with `chmod +x caddy`. Users of macOS may need to run `xattr -d com.apple.quarantine ./caddy` to lift the quarantine for executables from the internet.

View file

@ -139,7 +139,7 @@
"@types/markdown-it": "12.2.3", "@types/markdown-it": "12.2.3",
"@types/markdown-it-container": "2.0.5", "@types/markdown-it-container": "2.0.5",
"@types/markdown-it-plantuml": "1.4.1", "@types/markdown-it-plantuml": "1.4.1",
"@types/node": "18.16.6", "@types/node": "20.1.1",
"@types/react": "18.2.6", "@types/react": "18.2.6",
"@types/react-dom": "18.2.4", "@types/react-dom": "18.2.4",
"@types/sass": "1.43.1", "@types/sass": "1.43.1",

View file

@ -2273,7 +2273,7 @@ __metadata:
"@types/jest": 29.5.1 "@types/jest": 29.5.1
"@types/minio": 7.0.18 "@types/minio": 7.0.18
"@types/mysql": 2.15.21 "@types/mysql": 2.15.21
"@types/node": 18.16.6 "@types/node": 20.1.1
"@types/node-fetch": 2.6.3 "@types/node-fetch": 2.6.3
"@types/passport-http-bearer": 1.0.37 "@types/passport-http-bearer": 1.0.37
"@types/passport-local": 1.0.35 "@types/passport-local": 1.0.35
@ -2406,7 +2406,7 @@ __metadata:
"@types/markdown-it": 12.2.3 "@types/markdown-it": 12.2.3
"@types/markdown-it-container": 2.0.5 "@types/markdown-it-container": 2.0.5
"@types/markdown-it-plantuml": 1.4.1 "@types/markdown-it-plantuml": 1.4.1
"@types/node": 18.16.6 "@types/node": 20.1.1
"@types/react": 18.2.6 "@types/react": 18.2.6
"@types/react-dom": 18.2.4 "@types/react-dom": 18.2.4
"@types/sass": 1.43.1 "@types/sass": 1.43.1
@ -4786,10 +4786,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/node@npm:18.16.6": "@types/node@npm:20.1.1":
version: 18.16.6 version: 20.1.1
resolution: "@types/node@npm:18.16.6" resolution: "@types/node@npm:20.1.1"
checksum: 99417418952c0b1a6ff5dd40ccf01c2cd18db6a1c54bfaaff29c700c877e2e541aa31ea33090592f3817adb2b8c0946b86c7fb57049131e7c08252d70075f09b checksum: 47961ee23f873c14c3f6045422ff3059f3bfb10231ef3080a7a72d7215cc8c2623fa8cedb7b246305962fa9c1e0c9e381e04b12eb3e9ec5d076025c6231ac8da
languageName: node languageName: node
linkType: hard linkType: hard