From 91f1fd7d91393a3c981c3d1846cf300be646c9ae Mon Sep 17 00:00:00 2001 From: neil mclaughlin Date: Mon, 3 Feb 2025 16:57:00 +0000 Subject: [PATCH] Use .nvmrc to ensure the correct node version is installed --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aaa1746bb..a3b409d9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,14 +11,17 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Set node version + run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV + - name: Install nodejs uses: actions/setup-node@v4 with: - node-version: "18.x" + node-version: ${{ env.NODE_VERSION }} - name: Install node dependencies run: npm ci --engine-strict