mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Bump Node to 22.22.3, npm to ^10.9.8
Bumps supported Node engines to `^22.22.3 || ^24.15.0`. Updates to Node 22.22.3 for development, production, GitHub workflows and in documentation.
This commit is contained in:
@@ -124,7 +124,7 @@ jobs:
|
|||||||
bundler-cache: true
|
bundler-cache: true
|
||||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
||||||
with:
|
with:
|
||||||
node-version: 22.15
|
node-version: 22.22.3
|
||||||
package-manager-cache: false
|
package-manager-cache: false
|
||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
||||||
with:
|
with:
|
||||||
node-version: '22.15'
|
node-version: '22.22.3'
|
||||||
package-manager-cache: false
|
package-manager-cache: false
|
||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: frontend/package-lock.json
|
cache-dependency-path: frontend/package-lock.json
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
||||||
with:
|
with:
|
||||||
node-version: '22.21'
|
node-version: '22.22.3'
|
||||||
package-manager-cache: false
|
package-manager-cache: false
|
||||||
|
|
||||||
- name: Required git config
|
- name: Required git config
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
||||||
with:
|
with:
|
||||||
node-version: '22.15'
|
node-version: '22.22.3'
|
||||||
package-manager-cache: false
|
package-manager-cache: false
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
- **Size**: Large monorepo (~840MB, ~1M+ lines of code)
|
- **Size**: Large monorepo (~840MB, ~1M+ lines of code)
|
||||||
- **Backend**: Ruby 3.4.7, Rails ~8.0.3
|
- **Backend**: Ruby 3.4.7, Rails ~8.0.3
|
||||||
- **Frontend**: Node.js 22.21.0, npm 10.1.0+, TypeScript
|
- **Frontend**: Node.js 22.22.3 or 24.15.0+, npm 10.9.8+, TypeScript
|
||||||
- **Database**: PostgreSQL (required)
|
- **Database**: PostgreSQL (required)
|
||||||
- **Architecture**: Server-rendered HTML with Hotwire (Turbo + Stimulus). Legacy Angular components exist and are being migrated to custom elements. Uses GitHub's Primer Design System via ViewComponent.
|
- **Architecture**: Server-rendered HTML with Hotwire (Turbo + Stimulus). Legacy Angular components exist and are being migrated to custom elements. Uses GitHub's Primer Design System via ViewComponent.
|
||||||
- **Editions**: Community, Enterprise (SSO, LDAP, SCIM), and BIM (construction industry, code in `modules/bim/`)
|
- **Editions**: Community, Enterprise (SSO, LDAP, SCIM), and BIM (construction industry, code in `modules/bim/`)
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
**ALWAYS verify versions before building:**
|
**ALWAYS verify versions before building:**
|
||||||
- Ruby: `3.4.7` (see `.ruby-version`)
|
- Ruby: `3.4.7` (see `.ruby-version`)
|
||||||
- Node: `^22.21.0` (see `package.json` engines)
|
- Node: `^22.22.3 || ^24.15.0` (see `package.json` engines)
|
||||||
- Bundler: Latest 2.x
|
- Bundler: Latest 2.x
|
||||||
|
|
||||||
### Local Development Setup
|
### Local Development Setup
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
ARG RUBY_VERSION
|
ARG RUBY_VERSION
|
||||||
FROM ruby:${RUBY_VERSION}-trixie
|
FROM ruby:${RUBY_VERSION}-trixie
|
||||||
|
|
||||||
ENV NODE_VERSION="22.21.0"
|
ENV NODE_VERSION="22.22.3"
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
ENV BUNDLE_WITHOUT="development:production:docker"
|
ENV BUNDLE_WITHOUT="development:production:docker"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:22.21.0
|
FROM node:22.22.3
|
||||||
LABEL org.opencontainers.image.authors="operations@openproject.com"
|
LABEL org.opencontainers.image.authors="operations@openproject.com"
|
||||||
|
|
||||||
ARG DEV_UID=1000
|
ARG DEV_UID=1000
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ ARG BUILDKIT_SBOM_SCAN_STAGE=true
|
|||||||
FROM ruby:${RUBY_VERSION}-slim-trixie AS runtime-base
|
FROM ruby:${RUBY_VERSION}-slim-trixie AS runtime-base
|
||||||
LABEL maintainer="operations@openproject.com"
|
LABEL maintainer="operations@openproject.com"
|
||||||
|
|
||||||
ARG NODE_VERSION="22.21.0"
|
ARG NODE_VERSION="22.22.3"
|
||||||
ARG BIM_SUPPORT=true
|
ARG BIM_SUPPORT=true
|
||||||
ENV USE_JEMALLOC=false
|
ENV USE_JEMALLOC=false
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
@@ -61,7 +61,7 @@ COPY ./docker/prod/setup/preinstall-common.sh ./docker/prod/setup/preinstall-com
|
|||||||
RUN ./docker/prod/setup/preinstall-common.sh
|
RUN ./docker/prod/setup/preinstall-common.sh
|
||||||
|
|
||||||
FROM runtime-base AS build-base
|
FROM runtime-base AS build-base
|
||||||
ARG NODE_VERSION="22.21.0"
|
ARG NODE_VERSION="22.22.3"
|
||||||
|
|
||||||
# build-only dependencies
|
# build-only dependencies
|
||||||
COPY ./docker/prod/setup/preinstall-build.sh ./docker/prod/setup/preinstall-build.sh
|
COPY ./docker/prod/setup/preinstall-build.sh ./docker/prod/setup/preinstall-build.sh
|
||||||
|
|||||||
@@ -161,11 +161,11 @@ git clone https://github.com/nodenv/node-build.git $(nodenv root)/plugins/node-b
|
|||||||
|
|
||||||
You can find the latest LTS version here: [nodejs.org/en/download/](https://nodejs.org/en/download/)
|
You can find the latest LTS version here: [nodejs.org/en/download/](https://nodejs.org/en/download/)
|
||||||
|
|
||||||
At the time of writing this is v22.21.0 Install and activate it with:
|
At the time of writing this is v22.22.3 Install and activate it with:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
nodenv install 22.21.0
|
nodenv install 22.22.3
|
||||||
nodenv global 22.21.0
|
nodenv global 22.22.3
|
||||||
nodenv rehash
|
nodenv rehash
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -187,10 +187,10 @@ bundler --version
|
|||||||
4.0.9
|
4.0.9
|
||||||
|
|
||||||
node --version
|
node --version
|
||||||
v22.21.0
|
v22.22.3
|
||||||
|
|
||||||
npm --version
|
npm --version
|
||||||
10.5.0
|
10.9.8
|
||||||
```
|
```
|
||||||
|
|
||||||
## Install OpenProject Sources
|
## Install OpenProject Sources
|
||||||
|
|||||||
@@ -115,11 +115,11 @@ nodenv init
|
|||||||
|
|
||||||
You can find the latest LTS version here: [nodejs.org/en/download](https://nodejs.org/en/download/)
|
You can find the latest LTS version here: [nodejs.org/en/download](https://nodejs.org/en/download/)
|
||||||
|
|
||||||
At the time of writing this is v22.21.0. Install and activate it with:
|
At the time of writing this is v22.22.3. Install and activate it with:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
nodenv install 22.21.0
|
nodenv install 22.22.3
|
||||||
nodenv global 22.21.0
|
nodenv global 22.22.3
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Update NPM to the latest version
|
#### Update NPM to the latest version
|
||||||
@@ -140,10 +140,10 @@ $ bundler --version
|
|||||||
4.0.3
|
4.0.3
|
||||||
|
|
||||||
node --version
|
node --version
|
||||||
v22.21.0
|
v22.22.3
|
||||||
|
|
||||||
npm --version
|
npm --version
|
||||||
10.5.0
|
10.9.8
|
||||||
```
|
```
|
||||||
|
|
||||||
## Install OpenProject
|
## Install OpenProject
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ time to finish.
|
|||||||
To check our Node installation we run `node --version`. It should output something very similar to:
|
To check our Node installation we run `node --version`. It should output something very similar to:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
v22.21.0
|
v22.22.3
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation of OpenProject
|
## Installation of OpenProject
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
## Version Requirements
|
## Version Requirements
|
||||||
|
|
||||||
- Node: `^22.21.0` (see `package.json` engines)
|
- Node: `^22.22.3 || ^24.15.0` (see `package.json` engines)
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
|
|||||||
Generated
+2
-2
@@ -15,8 +15,8 @@
|
|||||||
"@redocly/cli": "^2.17.0"
|
"@redocly/cli": "^2.17.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^22.21.0",
|
"node": "^22.22.3 || ^24.15.0",
|
||||||
"npm": "^10.1.0"
|
"npm": "^10.9.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/code-frame": {
|
"node_modules/@babel/code-frame": {
|
||||||
|
|||||||
+2
-2
@@ -10,8 +10,8 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^22.21.0",
|
"node": "^22.22.3 || ^24.15.0",
|
||||||
"npm": "^10.1.0"
|
"npm": "^10.9.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@redocly/cli": "^2.17.0"
|
"@redocly/cli": "^2.17.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user