Skip to content

Commit

Permalink
Update node version to latest LTS (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
nowyDEV authored Nov 4, 2022
1 parent 5e4c0ae commit 4bbbf1a
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
node-version: "18"
- run: echo "registry=https://registry.npmjs.org/" > .npmrc
- run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'
- run: npm ci
- run: npm audit signatures
- run: cat .npmrc
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v18
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,12 @@ When you create a PR against the `master` branch, Amplify creates a new deployme
Below versions of Node & npm are required:

```bash
"node": ">=16.17.0",
"npm": ">=8.15.0"
"node": ">=18.12.0",
"npm": ">=8.19.2"
```

Run `nvm use` to use supported version.

### 3. Install packages

```bash
Expand Down
3 changes: 1 addition & 2 deletions amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ frontend:
phases:
preBuild:
commands:
- nvm install
- nvm use
- nvm install lts/gallium
- npm ci
- npm audit signatures
build:
Expand Down
90 changes: 81 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"postinstall": "patch-package"
},
"engines": {
"node": ">=16.17.0",
"npm": ">=8.15.0"
"node": "^16.18.0 || ^18.12.0",
"npm": ">=8.19.2"
},
"browserslist": {
"production": [
Expand Down Expand Up @@ -96,7 +96,7 @@
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.0.3",
"@types/lodash.clonedeep": "^4.5.7",
"@types/node": "^14.14.37",
"@types/node": "^18.11.9",
"@types/react": "^16.14.23",
"@types/react-dom": "^16.9.8",
"@types/react-helmet": "^6.1.5",
Expand Down

0 comments on commit 4bbbf1a

Please sign in to comment.