compressed-size-action

GitHub Action that adds compressed size changes to your PRs.

MIT License

Stars
580
Committers
31
compressed-size-action - 2.7.0

Published by rschristian 23 days ago

What's Changed

New Contributors

Full Changelog: https://github.com/preactjs/compressed-size-action/compare/2.6.0...2.7.0

compressed-size-action - 2.6.0 Latest Release

Published by rschristian 6 months ago

New Features / Improvements

Action Maintenance

Repo Maintenance

New Contributors

Full Changelog: https://github.com/preactjs/compressed-size-action/compare/2.5.0...2.6.0

compressed-size-action - 2.5.0

Published by developit over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/preactjs/compressed-size-action/compare/2.4.0...2.5.0

compressed-size-action - 2.4.0

Published by developit over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/preactjs/compressed-size-action/compare/2.3.0...2.4.0

compressed-size-action -

Published by developit over 3 years ago

  • Update the default value of the pattern config option to include .mjs and .cjs files in addition to .js (14f22a1).
compressed-size-action -

Published by developit over 3 years ago

  • Hide "size change" column if all size changes are 0b (no changes) (#50, thanks @fisker!)
  • Default github-token config option to ${{ github.token }} and make it optional (#58, thanks @MichaelDeBoey!)
  • Add clean-script config option, which is an npm-script to run between builds (after target is built and pr is checked out, but before installing+building pr) - see updated documentation.
compressed-size-action -

Published by developit almost 4 years ago

  • Improve diff table output (#28, thanks @fisker)
  • Run git reset between builds to prevent conflicts (#40, thanks @JoviDeCroock)
  • Update dependencies (#45, thanks @andrewiggins)
  • Fix percent change calculation (#44, thanks @arendjr)
  • Add new cwd option for executing the action in a custom directory (#48)
  • Support on: pull_request_target to comment on PR's from forks (yay!)
compressed-size-action -

Published by developit over 4 years ago

compressed-size-action -

Published by developit over 4 years ago

  • New strip-hash option to customize filename hash removal (see below) (#15, thanks @bartlomiejzuber)
  • A new experimental use-check option, which reports status as a CI Check instead of comments (#18)
  • Adjust the default file pattern to find files in subfolders (#14, thanks @VikingTristan)
  • Fix usage with Yarn's frozen-lockfile option (#5 thanks @sasurau4)
  • Add an error message when configured incorrectly (#7 thanks @gavinsharp)

Custom filename hash comparison

In v2, a new strip-hash option allows passing a custom Regular Expression pattern that is then used to remove hashes from filenames before comparison and for display purposes.

By default, the sequence of characters matched by the regex will be removed from filenames for comparison and display purposes. The example below will convert foo.abcde.js to foo.js:

  strip-hash: "\\b\\w{5}\\."

You can customize this by using parens to create a submatch that marks where the hash occurs. When a submatch is detected, it will be replaced with asterisk characters matching its length. This is particularly useful in cases where a mix of hashed and unhashed filenames are in use. In the example below, foo.abcde.chunk.js will be replaced with foo.*****.chunk.js.

  strip-hash: "\\.(\\w{5})\\.chunk\\.js$"

Full Usage:

# <etc>
    - uses: actions/checkout@v2
    - uses: preactjs/compressed-size-action@v1
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"
+       strip-hash: "\\.(\\w{5})\\.chunk\\.js$"
compressed-size-action -

Published by developit over 4 years ago

  • A new minimum-change-threshold allows specifying a minimum size difference below which files will be considered unchanged (#21, thanks @dstaley)
  • Add "none" compression option (#26, thanks @fisker)
  • Allow passing pattern and exclude filename patterns to filter files (#24, thanks @teodragovic)
compressed-size-action - v1

Published by developit over 4 years ago

  • Attempt to fall back to a PR review comment, and don't fail the check when comments can't be posted.
Package Rankings
Top 0.44% on Github actions
Related Projects