Skip to content

Commit 8900c14

Browse files
Update to node 18 (#322)
1 parent 15adadb commit 8900c14

5 files changed

Lines changed: 13 additions & 23 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
runs-on: ubuntu-22.04
2121
steps:
2222
- uses: actions/checkout@v4
23-
- uses: actions/setup-node@v2
23+
- uses: actions/setup-node@v4
2424
with:
25-
node-version: '14'
25+
node-version: '18'
2626

2727
# Caching. As recommended by the github action
2828
- name: Get yarn cache directory path

.github/workflows/deploy-to-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
runs-on: ubuntu-22.04
3636
steps:
3737
- uses: actions/checkout@v4
38-
- uses: actions/setup-node@v2
38+
- uses: actions/setup-node@v4
3939
with:
40-
node-version: '14'
40+
node-version: '18'
4141

4242
# Caching. As recommended by the github action
4343
- name: Get yarn cache directory path

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:10.16.0 as builder
1+
FROM node:18-alpine as builder
22

33
RUN mkdir -p /app
44
WORKDIR /app

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
"whatwg-fetch": "2.0.3"
4242
},
4343
"scripts": {
44-
"start-js": "node scripts/start.js",
44+
"start-js": "NODE_OPTIONS=--openssl-legacy-provider node scripts/start.js",
4545
"start": "npm-run-all -p watch-css start-js",
4646
"serve-build": "yarn run serve -s build",
47-
"build-js": "node scripts/build.js",
47+
"build-js": "NODE_OPTIONS=--openssl-legacy-provider node scripts/build.js",
4848
"build": "npm-run-all build-css build-js && cp build/index.html build/404.html",
4949
"watch-css": "npm run build-css -- --watch",
5050
"build-css": "sass --load-path ./src --load-path ./node_modules src/:src/ --no-source-map",
@@ -53,7 +53,7 @@
5353
"lint": "eslint src",
5454
"test": "node scripts/test.js --env=jsdom",
5555
"storybook": "start-storybook -p 9001 -c .storybook"
56-
},
56+
},
5757
"devDependencies": {
5858
"@babel/core": "^7.5.5",
5959
"@babel/helper-define-map": "^7.13.12",
@@ -135,6 +135,6 @@
135135
"extends": "react-app"
136136
},
137137
"engines": {
138-
"node": "~14"
138+
"node": ">=18.0.0"
139139
}
140140
}

yarn.lock

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3685,20 +3685,10 @@ caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000634, caniuse-db@^1.0.30000639:
36853685
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000978.tgz#6c71237ff5e2b759bc52496f560e2f6287e90a28"
36863686
integrity sha512-UTzb0WomXxeqhAn3HgygItnkQeiLujN/O4D6hhB4ccSgktBysAbO/duUBJiNsPyxn/DsV8OnIn45jNeuvmUcPQ==
36873687

3688-
caniuse-lite@^1.0.30000748, caniuse-lite@^1.0.30000792, caniuse-lite@^1.0.30000955:
3689-
version "1.0.30000978"
3690-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000978.tgz#1e3346c27fc46bce9ac1ccd77863153a263dde56"
3691-
integrity sha512-H6gK6kxUzG6oAwg/Jal279z8pHw0BzrpZfwo/CA9FFm/vA0l8IhDfkZtepyJNE2Y4V6Dp3P3ubz6czby1/Mgsw==
3692-
3693-
caniuse-lite@^1.0.30000980:
3694-
version "1.0.30000980"
3695-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000980.tgz#0df53e4354b3111f83ac15b0bd4c71fe92994231"
3696-
integrity sha512-as0PRtWHaX3gl2gpC7qA7bX88lr+qLacMMXm1QKLLQtBCwT/Ljbgrv5EXKMNBoeEX6yFZ4vIsBb4Nh+PEwW2Rw==
3697-
3698-
caniuse-lite@^1.0.30001125:
3699-
version "1.0.30001230"
3700-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001230.tgz#8135c57459854b2240b57a4a6786044bdc5a9f71"
3701-
integrity sha512-5yBd5nWCBS+jWKTcHOzXwo5xzcj4ePE/yjtkZyUV1BTUmrBaA9MRGC+e7mxnqXSA90CmCA8L3eKLaSUkt099IQ==
3688+
caniuse-lite@^1.0.30000748, caniuse-lite@^1.0.30000792, caniuse-lite@^1.0.30000955, caniuse-lite@^1.0.30000980, caniuse-lite@^1.0.30001125:
3689+
version "1.0.30001741"
3690+
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001741.tgz"
3691+
integrity sha512-QGUGitqsc8ARjLdgAfxETDhRbJ0REsP6O3I96TAth/mVjh2cYzN2u+3AzPP3aVSm2FehEItaJw1xd+IGBXWeSw==
37023692

37033693
capture-exit@^2.0.0:
37043694
version "2.0.0"

0 commit comments

Comments
 (0)