Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
timeowilliams committed Sep 14, 2024
1 parent 88589d8 commit db09e3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ jobs:

# Analyze the bundle size and create a badge
- name: Analyze and Create Badge
uses: timeowilliams/package-size-badge-action@latest # Use @latest to always get the most recent version
uses: timeowilliams/package-size-badge-action@1.0.3
with:
path: "build/static/js/*.js" # User specifies the path to their JS bundle
limit: "500 KB" # Bundle size limit
label: "Bundle Size"
color: "green"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
### Inputs
Expand Down
2 changes: 1 addition & 1 deletion size-limit.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { execSync } from "child_process";
import fs from "fs";
import * as core from "@actions/core";
import * as github from '@actions/github'
import * as github from "@actions/github";

(async function run() {
try {
Expand Down

0 comments on commit db09e3a

Please sign in to comment.