From b7545c95c2d35e3cabc467659826b3edcbacf760 Mon Sep 17 00:00:00 2001 From: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> Date: Fri, 30 Sep 2022 16:08:46 +0530 Subject: [PATCH] build: use node version from `"engines"` https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#node-version-file Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- .github/workflows/ct.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a60c16..dd7a5d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: - name: Setup node env 📦 uses: actions/setup-node@v3 with: - node-version: 17 + node-version-file: 'package.json' check-latest: true cache: 'npm' diff --git a/.github/workflows/ct.yml b/.github/workflows/ct.yml index 309cae5..a873369 100644 --- a/.github/workflows/ct.yml +++ b/.github/workflows/ct.yml @@ -15,7 +15,7 @@ jobs: - name: Setup node env 📦 uses: actions/setup-node@v3 with: - node-version: 10 + node-version-file: 'package.json' - name: Check out repository ✨ (non-dependabot) if: ${{ github.actor != 'dependabot[bot]' }}