Skip to content

Update Node.js from 10 to 22 #71

Update Node.js from 10 to 22

Update Node.js from 10 to 22 #71

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 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm install
- run: npm run build
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directory: hugo/
build_script: build