Skip to content

Commit

Permalink
Node 18 is not supported anymore
Browse files Browse the repository at this point in the history
Use node 20 instead
  • Loading branch information
Chocobozzz committed Jan 15, 2025
1 parent 7c9fe93 commit fcff0ce
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"licence": "AGPL-3.0",
"engines": {
"node": ">=18.x",
"node": ">=20.x",
"yarn": ">=1.x"
},
"type": "module",
Expand Down
16 changes: 8 additions & 8 deletions support/doc/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion support/docker/production/Dockerfile.bookworm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-bookworm-slim
FROM node:20-bookworm-slim

ARG ALREADY_BUILT=0

Expand Down

0 comments on commit fcff0ce

Please sign in to comment.