preactjs/compressed-size-action

Get compressed size differences for every PR

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
repo-tokenThe GITHUB_TOKEN secretno${{ github.token }}
base-refA specific git ref (branch, tag, or SHA) to compare against instead of the PR base branchno
clean-scriptAn npm-script that cleans/resets state between branch builds
install-scriptCustom installation script to run to set up the dependencies in your projectno
build-scriptThe npm-script to run that builds your projectbuild
compressionThe compression algorithm to use: "gzip" or "brotli"gzip
show-totalShow total size and difference.true
collapse-unchangedMove unchanged files into a separate collapsed tabletrue
omit-unchangedExclude unchanged files from the sizes table entirely
strip-hashA regular expression to remove hashes from filenames. Submatches are turned into asterisks if present, otherwise the whole match is removed.
use-checkReport status as a CI Check instead of using a comment [experimental]
minimum-change-thresholdConsider files with changes below this threshold as unchanged. Specified in bytes.1
patternminimatch pattern of files to track
excludeminimatch pattern of files NOT to track
cwdA custom working directory to execute the action in relative to repo root (defaults to .)
comment-keyOptional key to include in the bot comment to allow for multiple bundle calculations to be posted in separate comments.
sort-byThe column and direction to sort the results by. The format is "column:direction", where column is one of "Filename", "Size", or "Change" and direction is "asc" or "desc". For example, "Size:desc" sorts the table by file size in descending order.Filename:asc
namedescription
comment-bodyThe full Markdown body the action posts to the PR, including the size report and footer.