Skip to content

chore(deps): update build process for ESM-only @actions/core v3#717

Merged
EndBug merged 4 commits intodependabot/npm_and_yarn/actions/core-3.0.0from
copilot/sub-pr-716
Feb 28, 2026
Merged

chore(deps): update build process for ESM-only @actions/core v3#717
EndBug merged 4 commits intodependabot/npm_and_yarn/actions/core-3.0.0from
copilot/sub-pr-716

Conversation

Copy link
Contributor

Copilot AI commented Feb 3, 2026

  • Add "type": "module" to package.json to support ESM
  • Update tsconfig.json to output ESM format (module: "ES2022")
  • Convert Jest config to ESM format (jest.config.mjs)
  • Replace actions-toolkit with @actions/github for ESM compatibility
  • Rename .prettierrc.js to .prettierrc.cjs
  • Configure Jest for ESM modules
  • Fix github_token access to use getInput helper
  • Simplify Jest moduleNameMapper configuration
  • Rebase completed on dependabot/npm_and_yarn/actions/core-3.0.0
  • Verify build process works
  • Run and pass all tests and linters

Ready to merge!


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Update @actions/core package to version 3.0.0 chore(deps): update build process for ESM-only @actions/core v3 Feb 3, 2026
Copilot AI requested a review from EndBug February 3, 2026 11:18
Copilot AI requested a review from EndBug February 22, 2026 23:11
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/actions/core-3.0.0 branch from 044b581 to 9e0241e Compare February 28, 2026 11:31
@EndBug
Copy link
Owner

EndBug commented Feb 28, 2026

@copilot ok cool, rebase this and we can merge it

Copy link
Contributor Author

Copilot AI commented Feb 28, 2026

@copilot ok cool, rebase this and we can merge it

Rebased on dependabot/npm_and_yarn/actions/core-3.0.0 (commit 9e0241e). The branch now includes the minimatch bump (af611dd) from the base branch.

The rebase is complete locally but I need force-push permissions to update the remote branch. The local branch is at commit 8b85d01 and properly includes all changes rebased on the updated base.

All tests pass ✅ and the build works ✅ after the rebase.

Copilot AI and others added 4 commits February 28, 2026 11:55
- Add "type": "module" to package.json for ESM support
- Update TypeScript config to output ES2022 modules with esModuleInterop
- Convert Jest config to ESM (.mjs) with proper ts-jest ESM preset
- Rename .prettierrc.js to .prettierrc.cjs for CommonJS compatibility
- Replace actions-toolkit with @actions/github for ESM compatibility
- Configure Jest to handle ESM modules from @actions packages
- Update test script to use NODE_OPTIONS for experimental VM modules
- Build now outputs ESM format successfully

Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com>
Properly access github_token input using the getInput helper function
from io.ts instead of directly accessing process.env.

Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com>
The explicit moduleNameMappers for @actions/core and @actions/github were
not needed. The transformIgnorePatterns configuration is sufficient to
handle ESM modules from @actions packages. Only the relative import
mapper is required for TypeScript ESM compatibility.

Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com>
@EndBug EndBug force-pushed the copilot/sub-pr-716 branch from 8be929b to 0deac2f Compare February 28, 2026 11:55
@EndBug EndBug marked this pull request as ready for review February 28, 2026 11:56
@EndBug EndBug merged commit 3791f35 into dependabot/npm_and_yarn/actions/core-3.0.0 Feb 28, 2026
8 checks passed
@EndBug EndBug deleted the copilot/sub-pr-716 branch February 28, 2026 11:56
EndBug added a commit that referenced this pull request Feb 28, 2026
* chore(deps): bump @actions/core from 2.0.2 to 3.0.0

Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 2.0.2 to 3.0.0.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): update build process for ESM-only @actions/core v3 (#717)

* Initial plan

* feat: update build process for ESM-only @actions/core v3

- Add "type": "module" to package.json for ESM support
- Update TypeScript config to output ES2022 modules with esModuleInterop
- Convert Jest config to ESM (.mjs) with proper ts-jest ESM preset
- Rename .prettierrc.js to .prettierrc.cjs for CommonJS compatibility
- Replace actions-toolkit with @actions/github for ESM compatibility
- Configure Jest to handle ESM modules from @actions packages
- Update test script to use NODE_OPTIONS for experimental VM modules
- Build now outputs ESM format successfully

Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com>

* fix: use getInput for github_token instead of process.env

Properly access github_token input using the getInput helper function
from io.ts instead of directly accessing process.env.

Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com>

* refactor: remove unnecessary moduleNameMappers from Jest config

The explicit moduleNameMappers for @actions/core and @actions/github were
not needed. The transformIgnorePatterns configuration is sufficient to
handle ESM modules from @actions packages. Only the relative import
mapper is required for TypeScript ESM compatibility.

Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com>
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