MetaMask / core

This monorepo is a collection of packages used across multiple MetaMask clients
MIT License
288 stars 184 forks source link

Add GitHub Actions for tracking changes in sizes to packages #3669

Open mcmire opened 10 months ago

mcmire commented 10 months ago

We want to ensure that the packages we ship are as minimal as possible so that we don't unnecessarily bloat the apps that are using these packages.

To do this, we should track how large each package is when installed, and we should add a GitHub Action which automatically posts a comment on new PRs and reports the sizes of packages affected and a measure of how those sizes have changed (both using bytes and also percentages). We should store this information in artifacts which can later be read to produce an open source health dashboard of all of our libraries.

This means that before working on this ticket, we need to create an action that achieves the above goal. Ideally, we could find one that does this already without having to create one, though it's doubtful that it would write information to artifacts (but perhaps it could write that information to a JSON file instead).

mcmire commented 7 months ago

Also see: https://github.com/MetaMask/action-npm-publish/issues/43. Whatever solution we use there could be a simple solution here.