From b1df9546c44fc98928f7f86760e23b95e93f75f8 Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Tue, 12 May 2026 13:06:30 +0200 Subject: [PATCH] Use .nvmrc file --- .github/workflows/build.yml | 2 +- .github/workflows/lint.yml | 6 ++---- .github/workflows/test.yml | 3 +-- .nvmrc | 1 + 4 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7b3e5bfb..1bb03381 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha || github.sha }} - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: 20 + node-version-file: .nvmrc - name: Run build run: | npm ci --no-audit diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 45aede92..0689c13c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,8 +17,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: 20 - check-latest: true + node-version-file: .nvmrc cache: npm - name: Install Node.js dependencies @@ -40,8 +39,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: 20 - check-latest: true + node-version-file: .nvmrc cache: npm - name: Install Node.js dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d42d19cd..ae50c06a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,8 +25,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: 20 - check-latest: true + node-version-file: .nvmrc cache: npm - name: Build and start test server diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..6f4247a6 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +26