Skip to content

fix: set Node version explicitly #6

fix: set Node version explicitly

fix: set Node version explicitly #6

name: "Package Size Test"
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm install
- name: Run Package Size Badge Action
uses: ./
with:
path: "build/static/js/*.js" # Path to the JS files to check size
preset: "app" # Define preset: 'app', 'big-lib', or 'small-lib'
label: "Bundle Size"
limit: "500" # Set size limit in KB
color: "green" # Badge color
timeout-minutes: 10