Skip to content

Commit 63e9eaf

Browse files
committed
NEXT-31592 - Change admin node version to lts
1 parent d3ae516 commit 63e9eaf

File tree

10 files changed

+30
-14
lines changed

10 files changed

+30
-14
lines changed

.github/workflows/01-lint-admin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- uses: actions/setup-node@v3
2424
with:
25-
node-version: 18
25+
node-version: 20
2626

2727
- name: Retrieve the cached "node_modules" directory (if present)
2828
uses: actions/cache@v3

.github/workflows/01-lint-storefront.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- uses: actions/setup-node@v3
2424
with:
25-
node-version: 18
25+
node-version: 20
2626

2727
- name: Retrieve the cached "node_modules" directory (if present)
2828
uses: actions/cache@v3

.github/workflows/02-unit.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115

116116
- uses: actions/setup-node@v3
117117
with:
118-
node-version: 18
118+
node-version: 20
119119

120120
- name: Retrieve the cached "node_modules" directory (if present)
121121
uses: actions/cache@v3
@@ -161,7 +161,7 @@ jobs:
161161

162162
- uses: actions/setup-node@v3
163163
with:
164-
node-version: 18
164+
node-version: 20
165165

166166
- name: Retrieve the cached "node_modules" directory (if present)
167167
uses: actions/cache@v3

.gitlab/stages/10-lint.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,8 @@ NPM CI:
226226
- JS_APP_DIR: "src/Administration/Resources/app/administration/"
227227
NODE_IMAGE_TAG:
228228
- "lts-alpine"
229-
- "18-alpine"
229+
- "20-alpine"
230230
- JS_APP_DIR: "src/Storefront/Resources/app/storefront/"
231231
NODE_IMAGE_TAG:
232232
- "lts-alpine"
233-
- "16-alpine"
234-
- "18-alpine"
233+
- "20-alpine"

.gitlab/templates/plugin.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,15 @@ default:
194194
build and validate zip:
195195
stage: build
196196
image:
197-
name: ghcr.io/friendsofshopware/shopware-cli:0.3.16
197+
name: ghcr.io/friendsofshopware/shopware-cli:0.4.0
198198
entrypoint: [ "/usr/local/bin/entrypoint.sh" ]
199199
rules:
200200
- exists:
201201
- composer.json
202202
variables:
203203
SHOPWARE_PROJECT_ROOT: "${CI_PROJECT_DIR}"
204204
APP_ENV: 'dev'
205+
NODE_VERSION: 20
205206
before_script:
206207
- *setup_platform_and_plugin_files
207208
script:

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/hydrogen
1+
lts/iron
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Change administration node version
3+
issue: NEXT-31592
4+
author: Sebastian Seggewiß
5+
author_email: [email protected]
6+
author_github: @seggewiss
7+
---
8+
# Administration
9+
* Changed administration node version from `18 || 19 || 20` to `20`
10+
___
11+
# Upgrade Information
12+
## Administration Node.js version change
13+
14+
To use the administration it's now mandatory that your node version is the current LTS version `20` (`Iron`).
15+
If you use `devenv` or `nvm`, you just need to update your session as our configuration files are configured to use the correct version.
16+
Otherwise, you need to update your node installation manually.

devenv.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ in {
2323

2424
languages.javascript = {
2525
enable = lib.mkDefault true;
26-
package = lib.mkDefault pkgs.nodejs-18_x;
26+
package = lib.mkDefault pkgs.nodejs_20;
2727
};
2828

2929
languages.php = {

src/Administration/Resources/app/administration/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@
201201
"xml2js": "0.4.23"
202202
},
203203
"engines": {
204-
"node": "^18.0.0 || ^19.0.0 || ^20.0.0",
205-
"npm": "^8.0.0 || ^9.0.0 || ^10.0.0"
204+
"node": "^20.0.0",
205+
"npm": "^10.0.0"
206206
},
207207
"browserslist": [
208208
"last 2 versions",

src/Administration/Resources/app/administration/src/meta/meta.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ describe('Administration meta tests', () => {
8989
expect(typeof packageJson).toBe('object');
9090
expect(packageJson.hasOwnProperty('engines')).toBe(true);
9191
expect(packageJson.engines.hasOwnProperty('node')).toBe(true);
92-
expect(packageJson.engines.node).toBe('^18.0.0 || ^19.0.0 || ^20.0.0');
92+
expect(packageJson.engines.node).toBe('^20.0.0');
9393
expect(packageJson.engines.hasOwnProperty('npm')).toBe(true);
94-
expect(packageJson.engines.npm).toBe('^8.0.0 || ^9.0.0 || ^10.0.0');
94+
expect(packageJson.engines.npm).toBe('^10.0.0');
9595
});
9696
});

0 commit comments

Comments
 (0)