From f5d151bc5c2d74122a14f5751267720dc0430b2e Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Wed, 28 Aug 2024 09:49:45 +0300 Subject: [PATCH] feat(ci): use node version from .nvmrc https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#node-version-file Updated version in `.nvmrc` to latest v20 --- .github/workflows/ci.yml | 2 +- .github/workflows/docker-nightly-release.yml | 2 +- .github/workflows/e2e-tests.yml | 2 +- .github/workflows/releases.yml | 2 +- .nvmrc | 3 ++- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4dd9ffb7..b6335e7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: - run: corepack enable - uses: actions/setup-node@v3 with: - node-version: 20 + node-version-file: '.nvmrc' # Use the node version specified in .nvmrc cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/docker-nightly-release.yml b/.github/workflows/docker-nightly-release.yml index 41dbb155..4b312c98 100644 --- a/.github/workflows/docker-nightly-release.yml +++ b/.github/workflows/docker-nightly-release.yml @@ -32,7 +32,7 @@ jobs: - run: corepack enable - uses: actions/setup-node@v3 with: - node-version: 20 + node-version-file: '.nvmrc' # Use the node version specified in .nvmrc cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 13b787ef..7ba7b6c0 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 20 + node-version-file: '.nvmrc' # Use the node version specified in .nvmrc cache: 'pnpm' - name: Get Playwright version diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index d0d3febd..446f0ff1 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -61,7 +61,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 20 + node-version-file: '.nvmrc' # Use the node version specified in .nvmrc cache: 'pnpm' - name: Install dependencies diff --git a/.nvmrc b/.nvmrc index 87ec8842..bf5733e3 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1,2 @@ -18.18.2 +# workflows use this version of Node.js +20.17.0