Skip to content

Commit

Permalink
Merge pull request #181 from openstreetmap-polska/node20
Browse files Browse the repository at this point in the history
Upgrade NodeJS to 20
  • Loading branch information
starsep authored Dec 23, 2023
2 parents a9b85f8 + 47ef55a commit b7a4a6d
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Node JS
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup Node JS
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup Node JS
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Status:

One way to set up is:
1. Clone repo and open terminal in the project directory
2. Install Node version 18 or use [Node version manager](https://github.com/nvm-sh/nvm)
2. Install Node version 20 or use [Node version manager](https://github.com/nvm-sh/nvm)
3. Run `npm install`

Second way is if you are using VS Code and have Docker installed you can use devContainer extension.
Expand Down
33 changes: 26 additions & 7 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"store": "^2.0.12",
"typescript": "^4.8.3"
},
"engines": {
"node": ">=20.0.0"
},
"scripts": {
"start": "cross-env BROWSER=none react-scripts start",
"build": "react-scripts build",
Expand Down Expand Up @@ -57,7 +60,7 @@
},
"devDependencies": {
"@beyondtracks/spritezero-cli": "^2.3.1",
"@types/node": "^18.7.18",
"@types/node": "^20.10.5",
"@types/react": "^18.0.20",
"@types/react-dom": "^18.0.6",
"@types/react-image-gallery": "^1.2.0",
Expand Down

0 comments on commit b7a4a6d

Please sign in to comment.