Skip to content

build: compile all files into 1 source file to allow others to use th… #15

build: compile all files into 1 source file to allow others to use th…

build: compile all files into 1 source file to allow others to use th… #15

name: "Package Size Test"
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Clean npm cache
run: npm cache clean --force
- name: Install dependencies
run: npm ci
- name: List files in build directory
run: ls -R build/static/js/
- name: Run Package Size Badge Action
uses: ./
with:
path: "build/static/js/*.js"
preset: "app"
label: "Bundle Size"
limit: "500"
color: "green"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACTIONS_RUNNER_DEBUG: true
timeout-minutes: 10