From 678dd1411d6d4250b0ea23dfc25a8dd235166382 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Wed, 15 Jun 2022 20:40:26 +0200 Subject: [PATCH] Update to node v18 Signed-off-by: Tilman Vatteroth --- .github/workflows/build.yml | 4 ++-- .github/workflows/deploy-main.yml | 6 +++--- .github/workflows/deploy-pr.yml | 6 +++--- .github/workflows/e2e.yml | 6 +++--- .github/workflows/lint.yml | 12 ++++++------ .nvmrc | 2 +- README.md | 2 +- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dd072fadc..9b08430dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [ '14', '16' ] + node: [ '14', '16', '18' ] name: Test and build with NodeJS ${{ matrix.node }} steps: - name: Checkout repository @@ -30,7 +30,7 @@ jobs: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-${{ matrix.node }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-yarn- + ${{ runner.os }}-yarn-18 - name: Set up NodeJS uses: actions/setup-node@v3 with: diff --git a/.github/workflows/deploy-main.yml b/.github/workflows/deploy-main.yml index d940274f3..26836b3b8 100644 --- a/.github/workflows/deploy-main.yml +++ b/.github/workflows/deploy-main.yml @@ -25,14 +25,14 @@ jobs: id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-16-yarn-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-18-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-yarn + ${{ runner.os }}-yarn-18 - name: Set up NodeJS uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Install dependencies run: yarn install --immutable diff --git a/.github/workflows/deploy-pr.yml b/.github/workflows/deploy-pr.yml index 1dda7fda2..3b03c96a9 100644 --- a/.github/workflows/deploy-pr.yml +++ b/.github/workflows/deploy-pr.yml @@ -25,14 +25,14 @@ jobs: id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-16-yarn-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-18-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-yarn + ${{ runner.os }}-yarn-18 - name: Set up NodeJS uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Install dependencies run: yarn install --immutable diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index ad366011a..d72f96c38 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -36,15 +36,15 @@ jobs: if: steps.build-cache.outputs.cache-hit != 'true' with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-16-yarn-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-18-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-yarn- + ${{ runner.os }}-yarn-18 - name: Set up NodeJS if: steps.build-cache.outputs.cache-hit != 'true' uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Install dependencies if: steps.build-cache.outputs.cache-hit != 'true' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 327c480e8..507c7a3f9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,14 +27,14 @@ jobs: id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-16-yarn-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-18-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-yarn- + ${{ runner.os }}-yarn-18 - name: Set up NodeJS uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Install dependencies run: yarn install --immutable - name: Lint code @@ -55,14 +55,14 @@ jobs: id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-16-yarn-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-18-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-yarn- + ${{ runner.os }}-yarn-18 - name: Set up NodeJS uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Install dependencies run: yarn install --immutable - name: Lint code diff --git a/.nvmrc b/.nvmrc index 6f7f377bf..3f430af82 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v16 +v18 diff --git a/README.md b/README.md index 71911b2ae..7d13acf39 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ react and to improve it. ## Preparation -You need at least Node 14 (we recommend Node 16) and [yarn](https://yarnpkg.com/). +You need at least Node 14 (we recommend Node 18) and [yarn](https://yarnpkg.com/). ## Development mode