Skip to content

Commit

Permalink
Update to use node from the command line
Browse files Browse the repository at this point in the history
  • Loading branch information
cplkake authored Nov 14, 2024
1 parent d200b7b commit 114c619
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/lighthouse-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -48,6 +49,7 @@ jobs:
};
fs.writeFileSync('.lighthouserc.js', `module.exports = ${JSON.stringify(config, null, 2)};`);
"
- name: Install and run Lighthouse CI
run: |
Expand Down

0 comments on commit 114c619

Please sign in to comment.