From 3a4f2051a0565661b7f1ec57e6e05e7d136b7f70 Mon Sep 17 00:00:00 2001 From: Chris Wilkinson Date: Thu, 29 Sep 2022 10:47:38 +0100 Subject: [PATCH] Remove knowledge of the Node version from GitHub Actions The 'setup-node' action has added support for reading the Node version from the package.json file. Refs 55f834e921ae0ce860eacc5ad1aff05bdba4c052, https://github.com/actions/setup-node/pull/485 --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c26b84429..404c2ab95 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: - name: 'Set up Node.js' uses: actions/setup-node@v3.5.0 with: - node-version: 16 + node-version-file: package.json cache: ${{ !env.ACT && 'npm' || '' }} - name: 'Install dependencies' @@ -79,7 +79,7 @@ jobs: - name: 'Set up Node.js' uses: actions/setup-node@v3.5.0 with: - node-version: 16 + node-version-file: package.json cache: ${{ !env.ACT && 'npm' || '' }} - name: 'Install dependencies' @@ -101,7 +101,7 @@ jobs: - name: 'Set up Node.js' uses: actions/setup-node@v3.5.0 with: - node-version: 16 + node-version-file: package.json cache: ${{ !env.ACT && 'npm' || '' }} - name: 'Install dependencies' @@ -129,7 +129,7 @@ jobs: - name: 'Set up Node.js' uses: actions/setup-node@v3.5.0 with: - node-version: 16 + node-version-file: package.json cache: ${{ !env.ACT && 'npm' || '' }} - name: 'Install dependencies' @@ -214,7 +214,7 @@ jobs: - name: 'Set up Node.js' uses: actions/setup-node@v3.5.0 with: - node-version: 16 + node-version-file: package.json cache: ${{ !env.ACT && 'npm' || '' }} - name: 'Install dependencies'