{"repo":"preactjs/compressed-size-action","free":true,"listed":false,"github":"https://github.com/preactjs/compressed-size-action","clone":"git clone https://github.com/preactjs/compressed-size-action.git","description":"GitHub Action that adds compressed size changes to your PRs.","language":"JavaScript","stars":654,"topics":["compressed","prs","size","action","actions","workflow","bytes"],"license":"MIT","category":"workflow-automation","readme_excerpt":"compressed-size-action A GitHub action that reports changes in compressed file sizes on your PRs. - Automatically uses yarn , pnpm , bun , deno , or npm ci when lockfiles are present - Builds your PR, then builds the target and compares between the two - Doesn't upload anything or rely on centralized storage - Supports custom build scripts and file patterns Usage: Add a workflow ( .github/workflows/main.yml ): Note: Due to GitHub's permission model, this action cannot safely create comments when it is triggered by a PR from a fork. It will, however, still generate the size comparison and print the comment it would've posted to the stdout of the action, allowing manual checking and you can copy/paste it into a comment if you wish. The markdown comment that compressed-size-action posts to pull requests is also exposed as the comment-body output. This can be used by later workflow steps to archive the report, pass it to another job, or post the comment from a separate workflow with the permissions you need: Customizing the Installation By default, compressed-size-action will install dependencies according to which lockfiles are present, if any. However, if you need to run a different installation command, you can pass a custom script to do so. For example, to use npm ci with the --workspace option: Customizing the Build By default, compressed-size-action will try to build your PR by running the \"build\" npm script in your package.json . If you need to perform some tasks after dep","default_branch":null,"files":null,"tree":[],"storefront":"/r/preactjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/preactjs/compressed-size-action/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}