File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11name : " Package Size Badge Action"
22description : " 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
78inputs :
89 path :
@@ -21,10 +22,11 @@ inputs:
2122 description : " Badge color"
2223 required : false
2324 default : " blue"
25+
2426outputs :
2527 size :
2628 description : " The size of the bundle in KB"
2729
2830runs :
2931 using : " node20"
30- main : " size-limit .js"
32+ main : " dist/index .js"
You can’t perform that action at this time.
0 commit comments