Skip to content

Commit f1e01ac

Browse files
authored
chore: Bump to Node 24 LTS and setup-node v6 (#313)
- Bump Node.js runtime from 20.19.2 to 24.14.1 - Bump `actions/setup-node` from v4.4.0 to v6.3.0 - Bump `@types/node` from ^20 to ^24 - Update Volta config to Node 24.14.1 - Add Node 24.x to CI test matrix > [!IMPORTANT] > `actions/setup-node@v6` runs on the `node24` Actions runtime, which > requires **runner version v2.327.1 or later**. Self-hosted runners on macOS > or Windows using an older runner version will need to upgrade. > > Linux runners are unaffected. GitHub-hosted runners are already compatible. Closes: #312
1 parent 293eea2 commit f1e01ac

File tree

5 files changed

+23
-9
lines changed

5 files changed

+23
-9
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ jobs:
236236
strategy:
237237
matrix:
238238
os: [ubuntu-latest, windows-latest, macos-latest]
239-
node-version: ['20.x', '22.x']
239+
node-version: ['20.x', '22.x', '24.x']
240240
runs-on: ${{ matrix.os }}
241241
name: Test Node version preserved on ${{ matrix.os }} with Node ${{ matrix.node-version }}
242242
permissions:

action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ runs:
167167
INPUT_WORKING_DIRECTORY: ${{ inputs.working_directory }}
168168
INPUT_DISABLE_TELEMETRY: ${{ inputs.disable_telemetry }}
169169
INPUT_DISABLE_SAFE_DIRECTORY: ${{ inputs.disable_safe_directory }}
170-
uses: docker://ghcr.io/getsentry/action-release-image:master
170+
uses: docker://ghcr.io/getsentry/action-release-image:ab-bump-node
171171

172172
# For actions running on macos or windows runners, we use a composite
173173
# action approach which allows us to install the arch specific sentry-cli
@@ -191,12 +191,13 @@ runs:
191191
192192
- name: Setup node
193193
if: runner.os == 'macOS' || runner.os == 'Windows'
194-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
194+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
195195
with:
196196
# setup-node doesn't allow absolute paths, so we can't
197197
# just use `github.action_path` to read this out from the `package.json`
198198
# any changes to the runtime need to be reflected here
199-
node-version: 20.19.2
199+
node-version: 24.14.1
200+
package-manager-cache: false
200201

201202
- name: Install Sentry CLI v2
202203
if: runner.os == 'macOS' || runner.os == 'Windows'
@@ -239,9 +240,10 @@ runs:
239240
# Restore the original Node version
240241
- name: Restore original Node version
241242
if: (runner.os == 'macOS' || runner.os == 'Windows') && steps.node_version.outputs.NODE_VERSION != ''
242-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
243+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
243244
with:
244245
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}
246+
package-manager-cache: false
245247

246248
branding:
247249
icon: 'triangle'

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124585,7 +124585,7 @@ module.exports = JSON.parse('{"eN":{"H":"https://github.com/elastic/require-in-t
124585124585
/***/ ((module) => {
124586124586

124587124587
"use strict";
124588-
module.exports = JSON.parse('{"name":"action-release","version":"3.5.0","private":true,"description":"GitHub Action for creating a release on Sentry","main":"dist/index.js","scripts":{"all":"yarn run format && yarn run lint && yarn run build && yarn test","build":"ncc build src/main.ts -e @sentry/cli","format":"prettier --write **/*.ts **/*.md","format-check":"prettier --check **/*.ts **/*.md","lint":"eslint src/**/*.ts","set-docker-tag":"./scripts/set-docker-tag.sh","set-docker-tag-from-branch":"./scripts/set-docker-tag-from-branch.sh","start":"node dist/index.js","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/getsentry/action-release.git"},"keywords":["actions","sentry","release"],"author":"Sentry","license":"MIT","dependencies":{"@actions/core":"^2.0.1","@sentry/node":"^8.54.0","@sentry/cli":"^2.58.4"},"devDependencies":{"@types/jest":"^29.5.6","@types/node":"^20.8.9","@typescript-eslint/parser":"^6.9.0","@vercel/ncc":"^0.38.1","eslint":"^8.52.0","eslint-plugin-github":"^4.10.1","eslint-plugin-jest":"^27.4.3","jest":"^29.7.0","jest-circus":"^29.7.0","js-yaml":"^4.1.1","prettier":"^3.0.3","ts-jest":"^29.1.1","typescript":"^5.2.2"},"volta":{"node":"20.19.2","yarn":"1.22.4"}}');
124588+
module.exports = JSON.parse('{"name":"action-release","version":"3.5.0","private":true,"description":"GitHub Action for creating a release on Sentry","main":"dist/index.js","scripts":{"all":"yarn run format && yarn run lint && yarn run build && yarn test","build":"ncc build src/main.ts -e @sentry/cli","format":"prettier --write **/*.ts **/*.md","format-check":"prettier --check **/*.ts **/*.md","lint":"eslint src/**/*.ts","set-docker-tag":"./scripts/set-docker-tag.sh","set-docker-tag-from-branch":"./scripts/set-docker-tag-from-branch.sh","start":"node dist/index.js","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/getsentry/action-release.git"},"keywords":["actions","sentry","release"],"author":"Sentry","license":"MIT","dependencies":{"@actions/core":"^2.0.1","@sentry/node":"^8.54.0","@sentry/cli":"^2.58.4"},"devDependencies":{"@types/jest":"^29.5.6","@types/node":"^24.0.0","@typescript-eslint/parser":"^6.9.0","@vercel/ncc":"^0.38.1","eslint":"^8.52.0","eslint-plugin-github":"^4.10.1","eslint-plugin-jest":"^27.4.3","jest":"^29.7.0","jest-circus":"^29.7.0","js-yaml":"^4.1.1","prettier":"^3.0.3","ts-jest":"^29.1.1","typescript":"^5.2.2"},"volta":{"node":"24.14.1","yarn":"1.22.4"}}');
124589124589

124590124590
/***/ })
124591124591

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"devDependencies": {
3535
"@types/jest": "^29.5.6",
36-
"@types/node": "^20.8.9",
36+
"@types/node": "^24.0.0",
3737
"@typescript-eslint/parser": "^6.9.0",
3838
"@vercel/ncc": "^0.38.1",
3939
"eslint": "^8.52.0",
@@ -47,7 +47,7 @@
4747
"typescript": "^5.2.2"
4848
},
4949
"volta": {
50-
"node": "20.19.2",
50+
"node": "24.14.1",
5151
"yarn": "1.22.4"
5252
}
5353
}

yarn.lock

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,13 +1229,20 @@
12291229
dependencies:
12301230
"@types/node" "*"
12311231

1232-
"@types/node@*", "@types/node@^20.8.9":
1232+
"@types/node@*":
12331233
version "20.8.9"
12341234
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.8.9.tgz#646390b4fab269abce59c308fc286dcd818a2b08"
12351235
integrity sha512-UzykFsT3FhHb1h7yD4CA4YhBHq545JC0YnEz41xkipN88eKQtL6rSgocL5tbAP6Ola9Izm/Aw4Ora8He4x0BHg==
12361236
dependencies:
12371237
undici-types "~5.26.4"
12381238

1239+
"@types/node@^24.0.0":
1240+
version "24.12.0"
1241+
resolved "https://registry.yarnpkg.com/@types/node/-/node-24.12.0.tgz#6222e028210e5322e4f4f6767f8d88e5ea3b33d2"
1242+
integrity sha512-GYDxsZi3ChgmckRT9HPU0WEhKLP08ev/Yfcq2AstjrDASOYCSXeyjDsHg4v5t4jOj7cyDX3vmprafKlWIG9MXQ==
1243+
dependencies:
1244+
undici-types "~7.16.0"
1245+
12391246
"@types/pg-pool@2.0.6":
12401247
version "2.0.6"
12411248
resolved "https://registry.yarnpkg.com/@types/pg-pool/-/pg-pool-2.0.6.tgz#1376d9dc5aec4bb2ec67ce28d7e9858227403c77"
@@ -4555,6 +4562,11 @@ undici-types@~5.26.4:
45554562
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
45564563
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
45574564

4565+
undici-types@~7.16.0:
4566+
version "7.16.0"
4567+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.16.0.tgz#ffccdff36aea4884cbfce9a750a0580224f58a46"
4568+
integrity sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==
4569+
45584570
undici@^5.28.5:
45594571
version "5.29.0"
45604572
resolved "https://registry.yarnpkg.com/undici/-/undici-5.29.0.tgz#419595449ae3f2cdcba3580a2e8903399bd1f5a3"

0 commit comments

Comments
 (0)