Skip to content

Commit 5efc000

Browse files
authored
Merge pull request #11864 from cdrini/deps/node-24
Update to node 24 LTS
2 parents e75e47a + 5716cf6 commit 5efc000

File tree

7 files changed

+15
-5
lines changed

7 files changed

+15
-5
lines changed

.github/workflows/javascript_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/setup-node@v4
2626
with:
2727
# Should match what's in our Dockerfile
28-
node-version: '20' # Also update the `key` in the `with` map, below
28+
node-version: '24' # Also update the `key` in the `with` map, below
2929
- uses: actions/cache@v5
3030
id: npm-cache
3131
with:
@@ -36,7 +36,7 @@ jobs:
3636
# `node_modules` directly.
3737
path: 'node_modules'
3838
# Note the version number in this string -- update it when updating Node!
39-
key: ${{ runner.os }}-node20-${{ hashFiles('**/package-lock.json') }}
39+
key: ${{ runner.os }}-node24-${{ hashFiles('**/package-lock.json') }}
4040
- if: steps.npm-cache.outputs.cache-hit != 'true'
4141
run: npm install --no-audit
4242
- run: npm run lint

.github/workflows/new_pr_labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
types:
55
- opened
66
env:
7-
NODE_VERSION: '20'
7+
NODE_VERSION: '24'
88
jobs:
99
label_pr:
1010
# Continue only if the PR is not a draft, and was opened in the same repository that is running this action:

.github/workflows/weekly_status_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77
contents: read
88
issues: read
99
env:
10-
NODE_VERSION: '20'
10+
NODE_VERSION: '24'
1111
TEAM_ABC_CONFIG: '.github/workflows/config/weekly_status_report_team_abc.json'
1212
LEADS_G_CONFIG: '.github/workflows/config/weekly_status_report_openlibrary_leads_g.json'
1313
jobs:

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Require the version of node specified in package.json to avoid
2+
# issues where the package-lock.json is generated with slightly
3+
# differing syntaxes between node versions.
4+
engine-strict=true

package-lock.json

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

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@
8282
"webpack-cli": "^5.1.4",
8383
"workbox-webpack-plugin": "^7.3.0"
8484
},
85+
"engines": {
86+
"node": "^24.0.0"
87+
},
8588
"jest": {
8689
"roots": [
8790
"<rootDir>/openlibrary/plugins/openlibrary/js/",

scripts/install_nodejs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# See https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions
22

3-
NODE_MAJOR=20
3+
NODE_MAJOR=24
44

55
# Download and import the Nodesource GPG key
66
apt-get install -y ca-certificates curl gnupg

0 commit comments

Comments
 (0)