Skip to content

ci: re-run bundle rebuild when Renovate pushes to a labeled PR - #122

Merged
fengmk2 merged 1 commit into
mainfrom
ci/rebuild-bundle-synchronize
Aug 6, 2026
Merged

ci: re-run bundle rebuild when Renovate pushes to a labeled PR#122
fengmk2 merged 1 commit into
mainfrom
ci/rebuild-bundle-synchronize

Conversation

@fengmk2

@fengmk2 fengmk2 commented Aug 6, 2026

Copy link
Copy Markdown
Member

The rebuild-bundle workflow only fired on the labeled event, so a failed rebuild never retried: the label is added once at PR creation, and later Renovate rebases never re-triggered it. On #119 the first rebuild crashed during pnpm install (vite-plus-core 0.2.7 missing its rolldown linux binding), and after Renovate rebased to 0.2.8 the stale dist/ kept failing the "Verify dist is up to date" check until the label was manually re-added.

Changes:

  • Trigger on synchronize as well as labeled, gated on the needs-bundle-rebuild label being present (on the labeled event the just-added label is already in the array).
  • No loop: the run triggered by our own dist/ push finds no diff and exits without pushing, confirmed by today's no-op follow-up run on chore(deps): update vite-plus to v0.2.8 #119.

The rebuild-bundle workflow only fired on the labeled event, so when the
one rebuild attempt failed or Renovate rebased the PR afterwards, dist/
stayed stale and the "Verify dist is up to date" check kept failing
(seen on #119). Trigger on synchronize as well, gated on the label being
present. The run triggered by our own dist/ push finds no diff and exits
without pushing, so it cannot loop.
Copilot AI review requested due to automatic review settings August 6, 2026 06:54
@fengmk2
fengmk2 merged commit f4d323b into main Aug 6, 2026
46 checks passed
@fengmk2
fengmk2 deleted the ci/rebuild-bundle-synchronize branch August 6, 2026 06:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 GitHub Actions workflow that rebuilds and pushes dist/ so Renovate PRs automatically re-run the bundle rebuild when they get rebased/updated (not just when initially labeled), preventing “Verify dist is up to date” from staying red after a transient rebuild failure.

Changes:

  • Expand the pull_request trigger to include synchronize in addition to labeled.
  • Gate the job on presence of the needs-bundle-rebuild label via contains(github.event.pull_request.labels.*.name, ...) so the workflow only runs for labeled PRs across both event types.
  • Update the workflow header comments to document the new behavior and non-looping rationale.

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

@fengmk2 fengmk2 mentioned this pull request Aug 6, 2026
fengmk2 added a commit that referenced this pull request Aug 6, 2026
Bump the version to v1.17.0 in package.json, the README examples, and
the setup-ref / setupRef defaults in the GitLab and Azure templates.

Changes since v1.16.1:

- feat: support disabling Vite+'s Node.js management with node-manager:
false (#115)
- fix: retry sfw vp install when sfw misreports vp as not found on
Windows (#120)
- chore(deps): update vite-plus to v0.2.8 (#119)
- ci: re-run bundle rebuild when Renovate pushes to a labeled PR (#122)
- chore: align Renovate release age for the whole vite-plus group (#121)

After merge, tag the merge commit as v1.17.0 and push the tag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants