Skip to content

chore(deps): migrate to esm-only @actions packages#47

Merged
tenthirtyam merged 1 commit into
mainfrom
chore(deps)/migrate-to-esm-only-actions-packages
May 4, 2026
Merged

chore(deps): migrate to esm-only @actions packages#47
tenthirtyam merged 1 commit into
mainfrom
chore(deps)/migrate-to-esm-only-actions-packages

Conversation

@tenthirtyam
Copy link
Copy Markdown
Owner

Summary

Upgrade all @actions dependencies to their latest ESM-only major versions and align the TypeScript and test configurations accordingly.

Dependency changes:

- @actions/cache:      ^5.0.5 → ^6.0.0
- @actions/core:       ^2.0.3 → ^3.0.1
- @actions/exec:       ^2.0.0 → ^3.0.0
- @actions/tool-cache: ^3.0.1 → ^4.0.0

tsconfig.json:

  • module: CommonJS → ESNext
  • moduleResolution: (implicit node10) → bundler Allows TypeScript to natively consume ESM-only packages and emit ESM output consumed by ncc. No "type": "module" required in package.json; ncc bundles the ESM output to a CJS dist.

tsconfig.test.json:

  • module: CommonJS (explicit override)
  • moduleResolution: Node16
  • ignoreDeprecations: "6.0" Keeps ts-jest in CJS mode so Jest manual mocks in mocks/ continue to intercept @actions imports without loading the real ESM packages at test time.

Type

  • This is a bug fix.
  • This is an enhancement or feature.
  • This is a code style/formatting update.
  • This is a documentation update.
  • This is a refactoring update.
  • This is a chore update
  • This is something else.
    Please describe:

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

Test and Documentation

  • Tests have been completed.
  • Documentation has been added or updated.

Issue References

Additional Information

Upgrade all @actions dependencies to their latest ESM-only major
versions and align the TypeScript and test configurations accordingly.

Dependency changes:
- @actions/cache:      ^5.0.5 → ^6.0.0
- @actions/core:       ^2.0.3 → ^3.0.1
- @actions/exec:       ^2.0.0 → ^3.0.0
- @actions/tool-cache: ^3.0.1 → ^4.0.0

tsconfig.json:
- module: CommonJS → ESNext
- moduleResolution: (implicit node10) → bundler
Allows TypeScript to natively consume ESM-only packages and emit
ESM output consumed by ncc. No "type": "module" required in
package.json; ncc bundles the ESM output to a CJS dist.

tsconfig.test.json:
- module: CommonJS (explicit override)
- moduleResolution: Node16
- ignoreDeprecations: "6.0"
Keeps ts-jest in CJS mode so Jest manual mocks in __mocks__/
continue to intercept @actions imports without loading the real
ESM packages at test time.

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
@tenthirtyam tenthirtyam self-assigned this May 4, 2026
@tenthirtyam tenthirtyam added chore Chore documentation Documentation labels May 4, 2026
@tenthirtyam tenthirtyam merged commit 90bd8eb into main May 4, 2026
12 checks passed
@tenthirtyam tenthirtyam deleted the chore(deps)/migrate-to-esm-only-actions-packages branch May 4, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Chore dependencies Dependencies documentation Documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant