Skip to content

Commit 705addb

Browse files
authored
feat: upgrade from node.js 20 to 24 (#616)
* chore: upgrade node.js from 20 to 24 and pnpm from 10.12.4 to 10.15.1 * chore(deps-dev): upgrade @types/node from 20.17.28 to 24.3.1 * chore(deps-dev): upgrade @tsconfig/node20 to @tsconfig/node24 * chore: esbuild target 'node24' * feat: action using node24 * ci: node-version 24 * docs: changeset
1 parent f310588 commit 705addb

File tree

12 files changed

+74
-69
lines changed

12 files changed

+74
-69
lines changed

.changeset/pretty-hats-sin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'github-actions-cloudflare-pages': minor
3+
---
4+
5+
Upgrade action from node.js 20 to 24

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"ghcr.io/devcontainers-extra/features/act:1": {},
2323
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
2424
"ghcr.io/devcontainers/features/node:1": {
25-
"version": "20.19.3",
26-
"pnpmVersion": "10.12.4"
25+
"version": "24.7.0",
26+
"pnpmVersion": "10.15.1"
2727
},
2828
"ghcr.io/devcontainers/features/github-cli:1": {},
2929
"ghcr.io/devcontainers-extra/features/pre-commit:2": {}

.github/workflows/check-dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
3333
- uses: andykenward/github-actions/setup-pnpm@32471b1e0a5df8a09500a54b1254e3f0f881e52d #v1.0.3
3434
with:
35-
node-version: 20
35+
node-version: 24
3636
- name: Cache
3737
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3
3838
with:

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
languages: ${{ matrix.language }}
3030
- uses: andykenward/github-actions/setup-pnpm@32471b1e0a5df8a09500a54b1254e3f0f881e52d #v1.0.3
3131
with:
32-
node-version: 20
32+
node-version: 24
3333
- name: Cache
3434
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3
3535
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
2929
- uses: andykenward/github-actions/setup-pnpm@32471b1e0a5df8a09500a54b1254e3f0f881e52d #v1.0.3
3030
with:
31-
node-version: 20
31+
node-version: 24
3232
- name: Cache
3333
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3
3434
with:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
2323
- uses: andykenward/github-actions/setup-pnpm@32471b1e0a5df8a09500a54b1254e3f0f881e52d #v1.0.3
2424
with:
25-
node-version: 20
25+
node-version: 24
2626
- name: Cache
2727
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3
2828
with:

.github/workflows/update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
2121
- uses: andykenward/github-actions/setup-pnpm@32471b1e0a5df8a09500a54b1254e3f0f881e52d #v1.0.3
2222
with:
23-
node-version: 20
23+
node-version: 24
2424
- name: Cache
2525
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3
2626
with:
@@ -53,7 +53,7 @@ jobs:
5353
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
5454
- uses: andykenward/github-actions/setup-pnpm@32471b1e0a5df8a09500a54b1254e3f0f881e52d #v1.0.3
5555
with:
56-
node-version: 20
56+
node-version: 24
5757
- name: Cache
5858
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3
5959
with:

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ outputs:
4444
description: 'Wrangler cli output'
4545

4646
runs:
47-
using: node20
47+
using: node24
4848
main: dist/deploy/index.js

esbuild.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const config = {
99
bundle: true,
1010
format: 'esm',
1111
keepNames: true,
12-
target: 'node20',
12+
target: 'node24',
1313
platform: 'node',
1414
sourcemap: true,
1515
legalComments: 'external',

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
"@octokit/webhooks-schemas": "7.6.1",
6464
"@octokit/webhooks-types": "7.6.1",
6565
"@total-typescript/ts-reset": "0.6.1",
66-
"@tsconfig/node20": "20.1.6",
66+
"@tsconfig/node24": "24.0.1",
6767
"@types/json-schema": "7.0.15",
68-
"@types/node": "20.17.28",
68+
"@types/node": "24.3.1",
6969
"@vitest/eslint-plugin": "1.3.4",
7070
"dotenv": "17.2.0",
7171
"esbuild": "0.25.8",
@@ -89,10 +89,10 @@
8989
"peerDependencies": {
9090
"wrangler": "^4.13.2"
9191
},
92-
"packageManager": "pnpm@10.12.4",
92+
"packageManager": "pnpm@10.15.1",
9393
"engines": {
94-
"node": "^20.19.2",
95-
"pnpm": "^10.12.4"
94+
"node": "^24.7.0",
95+
"pnpm": "^10.15.1"
9696
},
9797
"pnpm": {
9898
"peerDependencyRules": {

0 commit comments

Comments
 (0)