Skip to content

Update Node.js from 10 to 22 #125

Update Node.js from 10 to 22

Update Node.js from 10 to 22 #125

name: "Lint JS files"
on:
push:
branches:
tags:
paths:
- "hugo/**/*.jsx?"
- "hugo/**/*.tsx?"
pull_request:
paths:
- "hugo/**/*.jsx?"
- "hugo/**/*.tsx?"
jobs:
frontend-lint:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14.15]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm ci --loglevel warn
working-directory: ./hugo
- uses: actions/cache@v4
with:
path: ${{ github.workspace }}/hugo/node_modules/.cache
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm run eslint
working-directory: ./hugo