Skip to content

Bump nanoid from 3.3.7 to 3.3.8 in /hugo #164

Bump nanoid from 3.3.7 to 3.3.8 in /hugo

Bump nanoid from 3.3.7 to 3.3.8 in /hugo #164

name: "Check and Validate CSS/JS Bundle Size with Node Setup"
on:
pull_request:
paths:
- '.github/workflows/ci-frontend-check.yml'
- 'hugo/package.json'
- 'hugo/package-lock.json'
- 'hugo/.size-limit.js'
- "hugo/**/*.jsx?"
- "hugo/**/*.tsx?"
- "hugo/**/*.scss"
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- name: Checkout repository
uses: actions/checkout@v4
# these steps are run in the size-limit-action anyway,
# but exposed separately so that in case there is a problem not with the file size
# but with the setup, we can see that failure clearly
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
cache-dependency-path: hugo
- name: Install dependencies
run: npm ci --omit=dev --omit optional
working-directory: hugo
- name: Build project
run: npm run build
working-directory: hugo
- name: Check bundle size limits
uses: andresz1/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directory: hugo/
build_script: build