Skip to content

Commit 7d11804

Browse files
stepankuzminunderoot
authored andcommitted
Switch to Node v20 (internal-1654)
1 parent 4fb7e8c commit 7d11804

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ workflows:
177177

178178
linux-defaults: &linux-defaults
179179
docker:
180-
- image: cimg/node:18.20-browsers
180+
- image: cimg/node:20.15-browsers
181181
working_directory: ~/mapbox-gl-js
182182

183183
mac-defaults: &mac-defaults

.github/workflows/codeql.yml

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ jobs:
3838
- name: Checkout repository
3939
uses: actions/checkout@v4
4040

41+
- if: matrix.language == 'javascript-typescript'
42+
name: Setup Node.js 20.x
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: 20.x
46+
4147
# Initializes the CodeQL tools for scanning.
4248
- name: Initialize CodeQL
4349
uses: github/codeql-action/init@v2

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.20.2
1+
20.15.1

CONTRIBUTING.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Install the Xcode Command Line Tools Package
99
xcode-select --install
1010
```
1111

12-
Install [node.js](https://nodejs.org/) version 18
12+
Install [node.js](https://nodejs.org/) version 20
1313
```bash
14-
brew install node@18
14+
brew install node@20
1515
```
1616

1717
Clone the repository
@@ -26,10 +26,10 @@ npm install
2626

2727
### Linux
2828

29-
Install [git](https://git-scm.com/), [node.js](https://nodejs.org/) version 18, [GNU Make](http://www.gnu.org/software/make/), and libglew-dev
29+
Install [git](https://git-scm.com/), [node.js](https://nodejs.org/) version 20, [GNU Make](http://www.gnu.org/software/make/), and libglew-dev
3030
```bash
3131
sudo apt-get update
32-
curl -sL https://deb.nodesource.com/setup_18.x | sudo bash -
32+
curl -sL https://deb.nodesource.com/setup_20.x | sudo bash -
3333
sudo apt-get install build-essential git nodejs libglew-dev libxi-dev
3434
```
3535

@@ -45,7 +45,7 @@ npm install
4545

4646
### Windows
4747

48-
Install [git](https://git-scm.com/), [node.js](https://nodejs.org/) version 18, [npm and node-gyp](https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#compiling-native-addon-modules).
48+
Install [git](https://git-scm.com/), [node.js](https://nodejs.org/) version 20, [npm and node-gyp](https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#compiling-native-addon-modules).
4949

5050
Clone the repository
5151
```bash

buildspec.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 0.2
33
phases:
44
install:
55
runtime-versions:
6-
nodejs: 18
6+
nodejs: 20
77
commands:
88
- echo "//registry.npmjs.org/:_authToken=$NPMAccessToken" > ~/.npmrc
99
- npm whoami

0 commit comments

Comments
 (0)