build: compile all files into 1 source file to allow others to use th… #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |