From 96572d43f627bf706da9a0e61de15ace18a6b038 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Wed, 8 Jan 2025 21:21:01 +0100 Subject: [PATCH] refactor: set node version via .nvmrc https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#node-version-file --- .github/workflows/pull-request.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index b701405..4aa1ab6 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -14,10 +14,12 @@ jobs: uses: actions/checkout@v3 - name: Set up NodeJS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' - name: Install dependencies - run: npm install + run: npm ci - name: Run tests run: npm test