Skip to content

Commit 3702b13

Browse files
feat: added support for nodejs24 layer (#427)
1 parent 1e441f1 commit 3702b13

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161

6262
strategy:
6363
matrix:
64-
node-version: [20.x, 22.x, 24.x]
64+
node-version: [20.x, 22.x]
6565

6666
steps:
6767
- uses: actions/checkout@v4

.github/workflows/publish-node.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
node-version: [20, 22]
13+
node-version: [20, 22, 24]
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Use Node.js ${{ matrix.node-version }}.x

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,25 @@ publish-nodejs22-local: build-nodejs22
112112
-v "${HOME}/.aws:/home/newrelic-lambda-layers/.aws" \
113113
newrelic-lambda-layers-nodejs22
114114

115+
build-nodejs24:
116+
docker build \
117+
--no-cache \
118+
-t newrelic-lambda-layers-nodejs24 \
119+
-f ./dockerfiles/Dockerfile.nodejs24 \
120+
.
121+
122+
publish-nodejs24-ci: build-nodejs24
123+
docker run \
124+
-e AWS_ACCESS_KEY_ID \
125+
-e AWS_SECRET_ACCESS_KEY \
126+
newrelic-lambda-layers-nodejs24
127+
128+
publish-nodejs24-local: build-nodejs24
129+
docker run \
130+
-e AWS_PROFILE \
131+
-v "${HOME}/.aws:/home/newrelic-lambda-layers/.aws" \
132+
newrelic-lambda-layers-nodejs24
133+
115134
build-ruby32:
116135
docker build \
117136
--no-cache \

libBuild.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ function layer_name_str() {
100100
"nodejs22.x")
101101
rt_part="NodeJS22X"
102102
;;
103+
"nodejs24.x")
104+
rt_part="NodeJS24X"
105+
;;
103106
"ruby3.2")
104107
rt_part="Ruby32"
105108
;;
@@ -160,6 +163,9 @@ function s3_prefix() {
160163
"nodejs22.x")
161164
name="nr-nodejs22.x"
162165
;;
166+
"nodejs24.x")
167+
name="nr-nodejs24.x"
168+
;;
163169
"ruby3.3")
164170
name="nr-ruby3.3"
165171
;;
@@ -185,7 +191,7 @@ function agent_name_str() {
185191
"dotnet")
186192
agent_name="Dotnet"
187193
;;
188-
"nodejs20.x"|"nodejs22.x")
194+
"nodejs20.x"|"nodejs22.x"|"nodejs24.x")
189195
agent_name="Node"
190196
;;
191197
"ruby3.2"|"ruby3.3"|"ruby3.4")

0 commit comments

Comments
 (0)