Fix build failure for @actions/github v9.0.0 ESM-only package - #24
Conversation
…build Co-authored-by: ahernandez411 <11199284+ahernandez411@users.noreply.github.com>
|
Before this PR can be merged, please recompile the action by running the following command from the |
|
@copilot , We got this comment , can you perform the action it requests |
|
@ahernandez411 The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@copilot Can you fix this without using the claude version |
|
@ahernandez411 The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@copilot use default to fix |
|
@ahernandez411 The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@copilot can you view the comments and build error and fix it |
Co-authored-by: ahernandez411 <11199284+ahernandez411@users.noreply.github.com>
Build completed successfully and action recompiled in commit |
aedf2db
into
dependabot/npm_and_yarn/dot-github/actions/did-custom-action-code-change/multi-75823392fc
Summary of PR changes
@actions/githubv9.0.0 is ESM-only — itspackage.jsonexports only"types"and"import"conditions. esbuild's--platform=nodeactivates"require"by default, causing resolution to fail at bundle time.Changes
package.json: Added--conditions=importto bothbuildandbundlescripts so esbuild resolves the ESM export condition correctlydist/index.js: Recompiled bundle using the updated build command withnpm run buildPR Requirements
+semver:keywords.NOTE: If the repo's workflow could not automatically update the
README.md, it should be updated manually with the next version. For javascript actions, if the repo's workflow could not automatically recompile the action it should also be updated manually as part of the PR.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.