ci: Reduce noisy Codecov PR comments and fix double bundle upload (#26939)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Declan Carroll 2026-03-12 11:07:51 +00:00 committed by GitHub
parent 155b35d39c
commit 88ff772ceb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -8,7 +8,8 @@ bundle_analysis:
comment:
require_bundle_changes: bundle_increase
bundle_change_threshold: 100Kb
bundle_change_threshold: 50Kb
require_changes: "coverage_drop OR uncovered_patch"
coverage:
status:

View file

@ -203,7 +203,8 @@ const plugins: UserConfig['plugins'] = [
}),
]
: []),
...(process.env.CODECOV_TOKEN
// Only run on non-release builds to prevent double upload from @vitejs/plugin-legacy
...(process.env.CODECOV_TOKEN && !release
? [
codecovVitePlugin({
enableBundleAnalysis: true,