From 114c619a13ae6d4ab2c408a996431b58c463ca15 Mon Sep 17 00:00:00 2001 From: Vinesh <42398320+cplkake@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:11:03 -0500 Subject: [PATCH] Update to use node from the command line --- .github/workflows/lighthouse-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lighthouse-ci.yml b/.github/workflows/lighthouse-ci.yml index 6cf344b66..b991f4a42 100644 --- a/.github/workflows/lighthouse-ci.yml +++ b/.github/workflows/lighthouse-ci.yml @@ -25,16 +25,17 @@ jobs: max-attempts: 10 retry-delay: 10s - - name: Setup and install Node.js 18 + - name: Setup and install Node.js 20 uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - run: npm install # insert API interaction here - name: Create lighthouserc.js using Node.js run: | + node -e " const fs = require('fs'); const config = { ci: { @@ -48,6 +49,7 @@ jobs: }; fs.writeFileSync('.lighthouserc.js', `module.exports = ${JSON.stringify(config, null, 2)};`); + " - name: Install and run Lighthouse CI run: |