Skip to content

Commit

Permalink
build: compile all files into 1 source file to allow others to use th…
Browse files Browse the repository at this point in the history
…is action seamlessly
  • Loading branch information
timeowilliams committed Sep 14, 2024
1 parent 1255813 commit a78b443
Show file tree
Hide file tree
Showing 6 changed files with 33,845 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

# Analyze the bundle size and create a badge
- name: Analyze and Create Badge
uses: timeowilliams/package-size-badge-action@1.0.3
uses: timeowilliams/package-size-badge-action@v1.0.3
with:
path: "build/static/js/*.js" # User specifies the path to their JS bundle
limit: "500 KB" # Bundle size limit
Expand Down
10 changes: 6 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: "Package Size Badge Action"
description: "Automatically calculate JavaScript bundle size and generate a badge"
author: "Timeo Williams"
icon: "activity"
color: "green"
author: "Timeo Williams <[email protected]>"
branding:
icon: "activity"
color: "green"

inputs:
path:
Expand All @@ -21,10 +22,11 @@ inputs:
description: "Badge color"
required: false
default: "blue"

outputs:
size:
description: "The size of the bundle in KB"

runs:
using: "node20"
main: "size-limit.js"
main: "dist/index.js"
Loading

0 comments on commit a78b443

Please sign in to comment.