From b08c813cabe404a6584b83d6def28a59e9347d6d Mon Sep 17 00:00:00 2001 From: ehmicky Date: Wed, 19 May 2021 20:52:50 +0200 Subject: [PATCH] chore: run CI on latest Node.js (#5418) --- .github/workflows/nodejs.yml | 17 ++++++++--------- .github/workflows/publish.yml | 10 +++------- .nvmrc | 2 +- website/.nvmrc | 2 +- 4 files changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 8801dc52..fa458c75 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -20,14 +20,13 @@ jobs: strategy: matrix: os: [macos-latest, windows-latest, ubuntu-latest] - node-version: [15.x] - steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: ${{ matrix.node-version }} + node-version: '*' + check-latest: true - name: log versions run: node --version && npm --version && yarn --version - name: install dependecies @@ -43,7 +42,7 @@ jobs: NODE_OPTIONS: --max-old-space-size=4096 - uses: actions/upload-artifact@master with: - name: dev-test-website-${{ runner.os }}-node-${{ matrix.node-version }} + name: dev-test-website-${{ runner.os }} path: dev-test e2e-with-cypress: @@ -53,15 +52,15 @@ jobs: strategy: matrix: machine: [1, 2, 3, 4, 5, 6, 7, 8] - node-version: [15.x] fail-fast: false steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: ${{ matrix.node-version }} + node-version: '*' + check-latest: true - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" @@ -73,7 +72,7 @@ jobs: ${{ runner.os }}-yarn- - uses: actions/download-artifact@master with: - name: dev-test-website-${{ runner.os }}-node-${{ matrix.node-version }} + name: dev-test-website-${{ runner.os }} path: dev-test - name: npm install run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f51c7b89..2f85226d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,19 +22,15 @@ jobs: publish: needs: check-permission runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [15.x] - steps: - uses: actions/checkout@v2 with: token: ${{ secrets.GIT_TOKEN }} - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: ${{ matrix.node-version }} + node-version: '*' + check-latest: true - uses: actions/cache@v2 with: path: ~/.cache/yarn diff --git a/.nvmrc b/.nvmrc index 60d3b2f4..64f5a0a6 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -15 +node diff --git a/website/.nvmrc b/website/.nvmrc index 60d3b2f4..64f5a0a6 100644 --- a/website/.nvmrc +++ b/website/.nvmrc @@ -1 +1 @@ -15 +node