Skip to content

Commit 4bbbf1a

Browse files
authored
Update node version to latest LTS (#520)
1 parent 5e4c0ae commit 4bbbf1a

File tree

7 files changed

+92
-19
lines changed

7 files changed

+92
-19
lines changed

.github/workflows/release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- uses: actions/checkout@v2
1010
- uses: actions/setup-node@v2
1111
with:
12-
node-version: "16"
12+
node-version: "18"
1313
- run: echo "registry=https://registry.npmjs.org/" > .npmrc
1414
- run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc
1515
env:

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-node@v2
1313
with:
14-
node-version: '16'
14+
node-version: '18'
1515
- run: npm ci
1616
- run: npm audit signatures
1717
- run: cat .npmrc

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16
1+
v18

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,12 @@ When you create a PR against the `master` branch, Amplify creates a new deployme
105105
Below versions of Node & npm are required:
106106

107107
```bash
108-
"node": ">=16.17.0",
109-
"npm": ">=8.15.0"
108+
"node": ">=18.12.0",
109+
"npm": ">=8.19.2"
110110
```
111111

112+
Run `nvm use` to use supported version.
113+
112114
### 3. Install packages
113115

114116
```bash

amplify.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ frontend:
33
phases:
44
preBuild:
55
commands:
6-
- nvm install
7-
- nvm use
6+
- nvm install lts/gallium
87
- npm ci
98
- npm audit signatures
109
build:

package-lock.json

+81-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"postinstall": "patch-package"
3737
},
3838
"engines": {
39-
"node": ">=16.17.0",
40-
"npm": ">=8.15.0"
39+
"node": "^16.18.0 || ^18.12.0",
40+
"npm": ">=8.19.2"
4141
},
4242
"browserslist": {
4343
"production": [
@@ -96,7 +96,7 @@
9696
"@testing-library/user-event": "^13.5.0",
9797
"@types/jest": "^27.0.3",
9898
"@types/lodash.clonedeep": "^4.5.7",
99-
"@types/node": "^14.14.37",
99+
"@types/node": "^18.11.9",
100100
"@types/react": "^16.14.23",
101101
"@types/react-dom": "^16.9.8",
102102
"@types/react-helmet": "^6.1.5",

0 commit comments

Comments
 (0)