chore: implement bundle size action#10907
Merged
Merged
Conversation
Contributor
Bundle Size ReportCompared current build against
Historical comparison: 1.x release stream baselines
|
Contributor
There was a problem hiding this comment.
1 issue found across 1 file
Confidence score: 4/5
- This PR looks safe to merge overall, with only a minor CI workflow reliability concern rather than a product/runtime regression risk.
- In
.github/workflows/bundle-size.yml, enablingcomment-prunconditionally can fail on fork-basedpull_requestruns becauseGITHUB_TOKENis often read-only there, making PR comments non-writable. - Pay close attention to
.github/workflows/bundle-size.yml- gatecomment-prfor non-fork PRs so comment steps don’t fail or behave inconsistently on forks.
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Bundle Size GitHub Actions workflow that runs on PR open, synchronise, and reopen events, then comments bundle size comparisons for the v1 release stream.
Linked issue
N/A
Changes
.github/workflows/bundle-size.ymlwith read-only contents permission and PR comment permission.npm ci --ignore-scriptsandnpm run build.axios/bundle-sizeagainst keydist/artefacts and publish the comparison as a PR comment.Checklist
index.d.tsandindex.d.cts) (N/A: no public API change)Summary by cubic
Adds a GitHub Action that builds
axiosand reports bundle size changes on v1 PRs to catch regressions early. Comments only on non-fork PRs and writes a JSON report.Description
.github/workflows/bundle-size.ymlwithcontents: readandpull-requests: write; runs on PR open/sync/reopen for the v1 stream.npm ci --ignore-scriptsandnpm run build.axios/bundle-size@f15fb81ae6e3de06418f59498989e5aeeca9785d(release-stream: '1') for:dist/axios.js,dist/axios.min.js,dist/browser/axios.cjs,dist/node/axios.cjs.bundle-size-comparison.jsonand comment only when the PR is from this repo (not forks).Docs
/docs/note about the “Bundle Size” workflow: when it runs, which files are compared, v1 stream scope, and that comments appear only on non-fork PRs.Testing
Semantic version impact
Written for commit c3b5ed6. Summary will update on new commits. Review in cubic