Skip to content

Commit aada65a

Browse files
committed
update node.js to v20
1 parent 3428a5d commit aada65a

File tree

10 files changed

+22
-14
lines changed

10 files changed

+22
-14
lines changed

.changeset/honest-camels-check.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/aws": major
3+
---
4+
5+
Updates minimum required Node.js version to v20

.github/actions/pnpm-setup/action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ runs:
55
using: 'composite'
66
steps:
77
# Install nodejs. https://github.com/actions/setup-node
8-
- name: Setup Node.js
9-
uses: actions/setup-node@v4
8+
- name: Set up Node.js
9+
uses: actions/setup-node@v5
1010
with:
11-
node-version: 18.x
11+
cache: pnpm # cache pnpm store
12+
node-version: 20.x
1213

1314
# Install pnpm. https://github.com/pnpm/action-setup
1415
- uses: pnpm/action-setup@v4

.github/workflows/e2e.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ jobs:
9090
with:
9191
version: 9
9292

93-
- name: Set up NodeJS v18
94-
uses: actions/setup-node@v4
93+
- name: Set up Node.js
94+
uses: actions/setup-node@v5
9595
with:
9696
cache: pnpm # cache pnpm store
97-
node-version: 18.18.2
97+
node-version: 20.x
9898

9999
- name: Install packages
100100
run: pnpm install

.github/workflows/pre-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ jobs:
2020
uses: actions/checkout@v4
2121

2222
# Setup .npmrc file to publish to npm
23-
- uses: actions/setup-node@v4
23+
- uses: actions/setup-node@v5
2424
with:
2525
registry-url: "https://registry.npmjs.org"
26+
node-version: 20.x
2627

2728
- uses: ./.github/actions/pnpm-setup
2829

.github/workflows/v2-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ jobs:
1212
uses: actions/checkout@v4
1313

1414
# Setup .npmrc file to publish to npm
15-
- uses: actions/setup-node@v4
15+
- uses: actions/setup-node@v5
1616
with:
1717
registry-url: "https://registry.npmjs.org"
18+
node-version: 20.x
1819

1920
- uses: ./.github/actions/pnpm-setup
2021

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"turbo": "1.10.12"
2424
},
2525
"engines": {
26-
"node": ">=18",
26+
"node": ">=20",
2727
"pnpm": ">=9"
2828
}
2929
}

packages/open-next/src/build/bundleNextServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function bundleNextServer(
5454
entryPoints: [entrypoint],
5555
bundle: true,
5656
platform: "node",
57-
target: ["node18"],
57+
target: ["node20"],
5858
// packages: "external",
5959
format: "cjs",
6060
external: externals,

packages/open-next/src/build/compileCache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function compileCache(
2929
external: ["next", "styled-jsx", "react", "@aws-sdk/*"],
3030
entryPoints: [path.join(options.openNextDistDir, "adapters", "cache.js")],
3131
outfile: compiledCacheFile,
32-
target: ["node18"],
32+
target: ["node20"],
3333
format,
3434
banner: {
3535
js: [
@@ -59,7 +59,7 @@ export function compileCache(
5959
path.join(options.openNextDistDir, "adapters", "composable-cache.js"),
6060
],
6161
outfile: compiledComposableCacheFile,
62-
target: ["node18"],
62+
target: ["node20"],
6363
format,
6464
banner: {
6565
js: [

packages/open-next/src/build/compileConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function compileOpenNextConfigNode(
8989
outfile: outputPath,
9090
bundle: true,
9191
format: "esm",
92-
target: ["node18"],
92+
target: ["node20"],
9393
external: externals,
9494
platform: "node",
9595
banner: {

packages/open-next/src/build/compileTagCacheProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function compileTagCacheProvider(
1818
path.join(options.openNextDistDir, "adapters", "dynamo-provider.js"),
1919
],
2020
outfile: path.join(providerPath, "index.mjs"),
21-
target: ["node18"],
21+
target: ["node20"],
2222
plugins: [
2323
openNextResolvePlugin({
2424
fnName: "initializationFunction",

0 commit comments

Comments
 (0)