diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29cc227..8a0ce48 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,9 +20,9 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: - node-version: '14' + node-version: '18' # Caching. As recommended by the github action - name: Get yarn cache directory path diff --git a/.github/workflows/deploy-to-pages.yml b/.github/workflows/deploy-to-pages.yml index 3248269..12cf3c2 100644 --- a/.github/workflows/deploy-to-pages.yml +++ b/.github/workflows/deploy-to-pages.yml @@ -35,9 +35,9 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: - node-version: '14' + node-version: '18' # Caching. As recommended by the github action - name: Get yarn cache directory path diff --git a/Dockerfile b/Dockerfile index 8fe42db..7fae4af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:10.16.0 as builder +FROM node:18-alpine as builder RUN mkdir -p /app WORKDIR /app diff --git a/package.json b/package.json index a51678b..d3795c0 100644 --- a/package.json +++ b/package.json @@ -41,10 +41,10 @@ "whatwg-fetch": "2.0.3" }, "scripts": { - "start-js": "node scripts/start.js", + "start-js": "NODE_OPTIONS=--openssl-legacy-provider node scripts/start.js", "start": "npm-run-all -p watch-css start-js", "serve-build": "yarn run serve -s build", - "build-js": "node scripts/build.js", + "build-js": "NODE_OPTIONS=--openssl-legacy-provider node scripts/build.js", "build": "npm-run-all build-css build-js && cp build/index.html build/404.html", "watch-css": "npm run build-css -- --watch", "build-css": "sass --load-path ./src --load-path ./node_modules src/:src/ --no-source-map", @@ -53,7 +53,7 @@ "lint": "eslint src", "test": "node scripts/test.js --env=jsdom", "storybook": "start-storybook -p 9001 -c .storybook" - }, + }, "devDependencies": { "@babel/core": "^7.5.5", "@babel/helper-define-map": "^7.13.12", @@ -135,6 +135,6 @@ "extends": "react-app" }, "engines": { - "node": "~14" + "node": ">=18.0.0" } } diff --git a/yarn.lock b/yarn.lock index 6164eb2..da52de5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3685,20 +3685,10 @@ caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000634, caniuse-db@^1.0.30000639: resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000978.tgz#6c71237ff5e2b759bc52496f560e2f6287e90a28" integrity sha512-UTzb0WomXxeqhAn3HgygItnkQeiLujN/O4D6hhB4ccSgktBysAbO/duUBJiNsPyxn/DsV8OnIn45jNeuvmUcPQ== -caniuse-lite@^1.0.30000748, caniuse-lite@^1.0.30000792, caniuse-lite@^1.0.30000955: - version "1.0.30000978" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000978.tgz#1e3346c27fc46bce9ac1ccd77863153a263dde56" - integrity sha512-H6gK6kxUzG6oAwg/Jal279z8pHw0BzrpZfwo/CA9FFm/vA0l8IhDfkZtepyJNE2Y4V6Dp3P3ubz6czby1/Mgsw== - -caniuse-lite@^1.0.30000980: - version "1.0.30000980" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000980.tgz#0df53e4354b3111f83ac15b0bd4c71fe92994231" - integrity sha512-as0PRtWHaX3gl2gpC7qA7bX88lr+qLacMMXm1QKLLQtBCwT/Ljbgrv5EXKMNBoeEX6yFZ4vIsBb4Nh+PEwW2Rw== - -caniuse-lite@^1.0.30001125: - version "1.0.30001230" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001230.tgz#8135c57459854b2240b57a4a6786044bdc5a9f71" - integrity sha512-5yBd5nWCBS+jWKTcHOzXwo5xzcj4ePE/yjtkZyUV1BTUmrBaA9MRGC+e7mxnqXSA90CmCA8L3eKLaSUkt099IQ== +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: + version "1.0.30001741" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001741.tgz" + integrity sha512-QGUGitqsc8ARjLdgAfxETDhRbJ0REsP6O3I96TAth/mVjh2cYzN2u+3AzPP3aVSm2FehEItaJw1xd+IGBXWeSw== capture-exit@^2.0.0: version "2.0.0"