Skip to content

Commit a78b443

Browse files
committed
build: compile all files into 1 source file to allow others to use this action seamlessly
1 parent 1255813 commit a78b443

6 files changed

Lines changed: 33845 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
# Analyze the bundle size and create a badge
2828
- name: Analyze and Create Badge
29-
uses: timeowilliams/package-size-badge-action@1.0.3
29+
uses: timeowilliams/package-size-badge-action@v1.0.3
3030
with:
3131
path: "build/static/js/*.js" # User specifies the path to their JS bundle
3232
limit: "500 KB" # Bundle size limit

action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: "Package Size Badge Action"
22
description: "Automatically calculate JavaScript bundle size and generate a badge"
3-
author: "Timeo Williams"
4-
icon: "activity"
5-
color: "green"
3+
author: "Timeo Williams <timeo.j.williams@gmail.com>"
4+
branding:
5+
icon: "activity"
6+
color: "green"
67

78
inputs:
89
path:
@@ -21,10 +22,11 @@ inputs:
2122
description: "Badge color"
2223
required: false
2324
default: "blue"
25+
2426
outputs:
2527
size:
2628
description: "The size of the bundle in KB"
2729

2830
runs:
2931
using: "node20"
30-
main: "size-limit.js"
32+
main: "dist/index.js"

0 commit comments

Comments
 (0)