Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 13, 2026

Dependabot updates package.json/package-lock.json but doesn't rebuild dist files, causing CI to fail when it checks for drift between source and built artifacts.

Changes

Added .github/workflows/dependabot-rebuild.yml that:

  • Triggers via workflow_run after JavaScript CI fails on a PR
  • Verifies PR author is dependabot[bot] using gh pr view
  • Runs npm ci && npm run build for all 9 JS packages
  • Commits rebuilt dist files back to the PR branch using appauth

Implementation Notes

  • Uses workflow_run event to gain write permissions (Dependabot PRs have read-only GITHUB_TOKEN)
  • Leverages existing appauth action with ENVOY_CI_PUBLISH_APP_ID/ENVOY_CI_PUBLISH_APP_KEY secrets
  • Only commits when git status --porcelain shows changes
  • Filters to same-repo PRs only (excludes forks)
on:
  workflow_run:
    workflows:
    - JavaScript CI
    types:
    - completed
Original prompt

#3452 fails because dependabot doesnt know how to rebuild the dist files


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@netlify
Copy link

netlify bot commented Jan 13, 2026

Deploy Preview for nifty-bassi-e26446 ready!

Name Link
🔨 Latest commit d8d8105
🔍 Latest deploy log https://app.netlify.com/projects/nifty-bassi-e26446/deploys/696647619226f700081582ce
😎 Deploy Preview https://deploy-preview-3455--nifty-bassi-e26446.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI and others added 6 commits January 13, 2026 13:17
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
…execution

Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix dependabot rebuild issue for dist files Auto-rebuild dist files for Dependabot npm PRs Jan 13, 2026
Copilot AI requested a review from phlax January 13, 2026 13:27
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