Node 18 is not supported anymore

Use node 20 instead
This commit is contained in:
Chocobozzz 2025-01-15 10:14:50 +01:00
parent 7c9fe93402
commit fcff0ce69f
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
8 changed files with 15 additions and 15 deletions

View File

@ -37,7 +37,7 @@ jobs:
- uses: './.github/actions/reusable-prepare-peertube-build'
with:
node-version: '18.x'
node-version: '20.x'
- uses: './.github/actions/reusable-prepare-peertube-run'

View File

@ -55,7 +55,7 @@ jobs:
- uses: './.github/actions/reusable-prepare-peertube-build'
if: ${{ matrix.build-peertube }}
with:
node-version: '18.x'
node-version: '20.x'
- name: Build
if: ${{ matrix.build-peertube }}

View File

@ -20,7 +20,7 @@ jobs:
- uses: './.github/actions/reusable-prepare-peertube-build'
with:
node-version: '18.x'
node-version: '20.x'
- name: Build
run: npm run nightly

View File

@ -24,7 +24,7 @@ jobs:
- uses: './.github/actions/reusable-prepare-peertube-build'
with:
node-version: '18.x'
node-version: '20.x'
- name: Build
run: npm run build -- --analyze-bundle

View File

@ -61,7 +61,7 @@ jobs:
- uses: './.github/actions/reusable-prepare-peertube-build'
with:
node-version: '18.x'
node-version: '20.x'
- uses: './.github/actions/reusable-prepare-peertube-run'

View File

@ -5,7 +5,7 @@
"private": true,
"licence": "AGPL-3.0",
"engines": {
"node": ">=18.x",
"node": ">=20.x",
"yarn": ">=1.x"
},
"type": "module",

View File

@ -4,7 +4,7 @@
Main dependencies supported by PeerTube:
* `node` LTS (>=18.20 or 20.x)
* `node` LTS (20.x or 22.x)
* `yarn` 1.x (**must not be >=2.x**)
* `postgres` >=10.x
* `redis-server` >=6.x
@ -43,7 +43,7 @@ sudo apt-get install curl sudo unzip vim
2. It would be wise to disable root access and to continue this tutorial with a user with sudoers group access. You can see a guide for how to do this in Debian/Ubuntu [here](https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-ubuntu-20-04).
3. Install NodeJS 18.x:
3. Install NodeJS 20.x:
[https://nodejs.org/en/download/package-manager/all#debian-and-ubuntu-based-linux-distributions](https://nodejs.org/en/download/package-manager/all#debian-and-ubuntu-based-linux-distributions)
4. Install yarn, and be sure to have [a recent version](https://github.com/yarnpkg/yarn/releases/latest):
[https://yarnpkg.com/en/docs/install#linux-tab](https://yarnpkg.com/en/docs/install#linux-tab)
@ -90,7 +90,7 @@ sudo systemctl start redis postgresql
## CentOS 7
1. Install NodeJS 18.x:
1. Install NodeJS 20.x:
[https://nodejs.org/en/download/package-manager/all#centos-fedora-and-red-hat-enterprise-linux](https://nodejs.org/en/download/package-manager/all#centos-fedora-and-red-hat-enterprise-linux)
2. Install yarn:
@ -137,7 +137,7 @@ sudo systemctl enable --now postgresql
## Centos 8
1. Install NodeJS 18.x:
1. Install NodeJS 20.x:
[https://nodejs.org/en/download/package-manager/all#centos-fedora-and-red-hat-enterprise-linux](https://nodejs.org/en/download/package-manager/all#centos-fedora-and-red-hat-enterprise-linux)
2. Install yarn:
@ -187,9 +187,9 @@ sudo systemctl enable --now postgresql
sudo dnf update -y
```
2. Install NodeJS 18.x:
2. Install NodeJS 20.x:
```sh
sudo dnf module install -y nodejs:18
sudo dnf module install -y nodejs:20
```
3. Install yarn:
@ -246,7 +246,7 @@ su my-peertube-user
3. (Optional) Install certbot (choose instructions for your distribution):
[https://certbot.eff.org/all-instructions](https://certbot.eff.org/all-instructions)
4. Install NodeJS 18.x:
4. Install NodeJS 20.x:
[https://nodejs.org/en/download/package-manager/all#centos-fedora-and-red-hat-enterprise-linux](https://nodejs.org/en/download/package-manager/all#centos-fedora-and-red-hat-enterprise-linux)
5. Install yarn:
@ -339,7 +339,7 @@ echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo s
2. Install Node.JS
```sh
sudo dnf module install nodejs:18
sudo dnf module install nodejs:20
```
3. Install Yarn

View File

@ -1,4 +1,4 @@
FROM node:18-bookworm-slim
FROM node:20-bookworm-slim
ARG ALREADY_BUILT=0