Skip to content

fix(build): replace @vercel/ncc with esbuild to support @actions/core v3#42

Merged
lavoiesl merged 2 commits intorenovate/actions-core-3.xfrom
copilot/sub-pr-38
Mar 18, 2026
Merged

fix(build): replace @vercel/ncc with esbuild to support @actions/core v3#42
lavoiesl merged 2 commits intorenovate/actions-core-3.xfrom
copilot/sub-pr-38

Conversation

Copy link

Copilot AI commented Mar 18, 2026

@actions/core v3 is ESM-only (drops CJS exports), which breaks @vercel/ncc since its underlying webpack bundler can't resolve the import-only exports field.

Changes

  • Remove @vercel/ncc — incompatible with ESM-only dependencies
  • Add esbuild — handles ESM natively, bundles to CJS for the node20 Actions runner
  • Update build script:
    "build": "esbuild src/action.ts --bundle --platform=node --target=node20 --format=cjs --outfile=dist/index.js"
  • Rebuild dist/index.js with the new bundler

💡 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.

@changeset-bot
Copy link

changeset-bot bot commented Mar 18, 2026

⚠️ No Changeset found

Latest commit: 3118a4d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@secaccount
Copy link

secaccount commented Mar 18, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

… v3 (ESM-only)

Co-authored-by: lavoiesl <1216046+lavoiesl@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix dependency issue by updating @actions/core to v3 fix(build): replace @vercel/ncc with esbuild to support @actions/core v3 Mar 18, 2026
Copilot AI requested a review from lavoiesl March 18, 2026 13:16
@lavoiesl lavoiesl marked this pull request as ready for review March 18, 2026 13:24
@lavoiesl
Copy link
Collaborator

Merging this in #38 to test them together

@lavoiesl lavoiesl merged commit 6d87b9a into renovate/actions-core-3.x Mar 18, 2026
6 checks passed
@lavoiesl lavoiesl deleted the copilot/sub-pr-38 branch March 18, 2026 13:24
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.

3 participants