Skip to content

Update bundlemon to version 3 to fix CI failures on change check#1469

Merged
Matus Tomlein (matus-tomlein) merged 4 commits intomasterfrom
fix/bundlemon_ci
Apr 20, 2026
Merged

Update bundlemon to version 3 to fix CI failures on change check#1469
Matus Tomlein (matus-tomlein) merged 4 commits intomasterfrom
fix/bundlemon_ci

Conversation

@matus-tomlein
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 20, 2026 08:45
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the PR change-check GitHub Action to use Bundlemon v3 in order to restore/maintain bundle size checks in CI.

Changes:

  • Bump Bundlemon from 1.4.0 to 3.
  • Update Bundlemon environment variables (new project ID, add API key and GitHub token).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


- name: Check bundle size using bundlemon
run: npx bundlemon@1.4.0
run: npx bundlemon@3
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using npx bundlemon@3 leaves the workflow non-deterministic because it will pick up whatever the latest 3.x release is at runtime. To make CI reproducible and avoid unexpected breakages, pin to an exact version (or at least a minor/patch range you control).

Suggested change
run: npx bundlemon@3
run: npx bundlemon@3.0.0

Copilot uses AI. Check for mistakes.
Comment on lines +60 to +63
BUNDLEMON_PROJECT_ID: 69e5e44cf67d5035af9fd1c0
BUNDLEMON_PROJECT_APIKEY: ${{ secrets.BUNDLEMON_PROJECT_APIKEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This job runs on the pull_request event, but secrets.BUNDLEMON_PROJECT_APIKEY is not provided to workflows triggered from forked PRs. If bundlemon requires the API key, this step will fail for external contributors. Consider guarding the step with an if: that checks the PR is from the same repo (or that the secret is non-empty), or switching to a safer alternative pattern for forks.

Copilot uses AI. Check for mistakes.
# 50-character subject line
#   * Present tense
#
# 72-character wrapped longer description. This should answer:
#   * Why was this change necessary?
#   * How does it address the problem?
#   * Are there any side effects?
@matus-tomlein Matus Tomlein (matus-tomlein) merged commit 6a21bb5 into master Apr 20, 2026
7 checks passed
@matus-tomlein Matus Tomlein (matus-tomlein) deleted the fix/bundlemon_ci branch April 20, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants