Skip to content

Migrate toolkit dependencies to ESM#69

Merged
hidakatsuya merged 1 commit intomainfrom
migrate-toolkit-dependencies
Apr 18, 2026
Merged

Migrate toolkit dependencies to ESM#69
hidakatsuya merged 1 commit intomainfrom
migrate-toolkit-dependencies

Conversation

@hidakatsuya
Copy link
Copy Markdown
Owner

@hidakatsuya hidakatsuya commented Apr 18, 2026

Update actions/* packages.

@hidakatsuya hidakatsuya marked this pull request as ready for review April 18, 2026 17:02
Copilot AI review requested due to automatic review settings April 18, 2026 17:02
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

Migrates this GitHub Action’s runtime code and @actions/* toolkit dependencies to ESM, aligning the source with modern Node execution and updated toolkit majors.

Changes:

  • Bump @actions/core, @actions/exec, and @actions/tool-cache to newer major versions (and refresh lockfile transitive deps like undici/semver).
  • Convert src/* files from CommonJS require to ESM import/named exports, including explicit .js extensions.
  • Mark the package (and dist/) as ESM via "type": "module".

Reviewed changes

Copilot reviewed 4 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
yarn.lock Updates lockfile entries for new @actions/* majors and related transitive dependencies.
package.json Switches package to ESM (type: module) and bumps @actions/* dependency majors.
src/index.js Uses ESM imports and refactors setup imports to named setup exports.
src/linux.js Converts @actions/exec import to ESM.
src/windows.js Converts imports to ESM and uses node:-prefixed built-ins.
dist/package.json Ensures dist/ is treated as ESM by Node via local package scope.

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

@hidakatsuya hidakatsuya merged commit df4be4a into main Apr 18, 2026
7 checks passed
@hidakatsuya hidakatsuya deleted the migrate-toolkit-dependencies branch April 18, 2026 17:07
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