Skip to content

Update Node.js from 10 to 22 #73

Update Node.js from 10 to 22

Update Node.js from 10 to 22 #73

name: "Check size limit for CSS and JS bundles"
on:
pull_request:
paths:
- '.github/workflows/ci-frontend-check.yml'
- "hugo/**/*.jsx?"
- "hugo/**/*.tsx?"
- "hugo/**/*.scss"
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
NODE_OPTIONS: --openssl-legacy-provider
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
directory: hugo/
- run: npm install
with:

Check failure on line 23 in .github/workflows/ci-frontend-check.yml

View workflow run for this annotation

GitHub Actions / Check size limit for CSS and JS bundles

Invalid workflow file

The workflow is not valid. .github/workflows/ci-frontend-check.yml (Line: 23, Col: 9): Unexpected value 'with'
directory: hugo/
- run: npm run build
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directory: hugo/
build_script: build