Skip to content

Commit dd332ed

Browse files
committed
Update and pin node and npm versions
This commit updates the `Node.js` and `npm` versions and pins them to minor versions. The aim is to ensure that the version in dev environment is the same as the version used in CI/CD pipelines. To ensure it works, the exact pinned versions are now required in the `package.json` file with the aim of making it easier to debug in future. The `package-lock.json` file has been updated to work with the new npm version.
1 parent f83e987 commit dd332ed

8 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ on: [ pull_request ]
3737
# Versions defined in `env` use major version numbers only to install the latest minor/patch.
3838

3939
env:
40-
NODE_ACTIVE_LTS_VERSION: 24
41-
NODE_PREVIOUS_LTS_VERSION: 22
40+
NODE_ACTIVE_LTS_VERSION: 24.19
41+
NODE_PREVIOUS_LTS_VERSION: 22.23
4242
# Pin npm version to prevent npm issues from breaking the build
4343
# See <https://github.com/nodejs/node/issues/62425#issuecomment-4200715930>
44-
NPM_VERSION: 11.11.0
44+
NPM_VERSION: 11.17.0
4545

4646
jobs:
4747
build_on_node_previous_lts:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Node.js
1414
uses: actions/setup-node@v4
1515
with:
16-
node-version: 24
16+
node-version: 24.19
1717
cache: npm
1818

1919
- name: Print Node.js and npm version

.github/workflows/playwright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Node.js
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: 24
21+
node-version: 24.19
2222
cache: npm
2323

2424
- name: Print Node.js and npm version

.github/workflows/release-management.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Node.js
2323
uses: actions/setup-node@v4
2424
with:
25-
node-version: 24
25+
node-version: 24.19
2626
cache: npm
2727

2828
- name: Install
@@ -105,7 +105,7 @@ jobs:
105105
- name: Set up Node.js
106106
uses: actions/setup-node@v4
107107
with:
108-
node-version: 24
108+
node-version: 24.19
109109
cache: npm
110110
registry-url: https://registry.npmjs.org
111111

@@ -136,7 +136,7 @@ jobs:
136136
- name: Set up Node.js
137137
uses: actions/setup-node@v4
138138
with:
139-
node-version: 24
139+
node-version: 24.19
140140
cache: npm
141141

142142
- name: Install

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Node.js
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: 24
19+
node-version: 24.19
2020
cache: npm
2121

2222
- name: Print Node.js and npm version

docker/node/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM node:24
1+
FROM node:24.19
22
RUN mkdir /workspace
33
WORKDIR /workspace

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
"devEngines": {
3535
"runtime": {
3636
"name": "node",
37-
"version": "^22.11.0 || ^24.11.0",
37+
"version": "^22.23.0 || ^24.19.0",
3838
"onFail": "error"
3939
},
4040
"packageManager": {
4141
"name": "npm",
42-
"version": "^11.6.1",
42+
"version": "^11.17.0",
4343
"onFail": "error"
4444
}
4545
},

0 commit comments

Comments
 (0)