Skip to content

Switch to ESM and Upgrade @actions/cache#573

Closed
luckyabsoluter wants to merge 3 commits intonttld:mainfrom
luckyabsoluter:upgrade-cache
Closed

Switch to ESM and Upgrade @actions/cache#573
luckyabsoluter wants to merge 3 commits intonttld:mainfrom
luckyabsoluter:upgrade-cache

Conversation

@luckyabsoluter
Copy link
Copy Markdown

@luckyabsoluter luckyabsoluter commented Feb 6, 2026

close #572

This pull request modernizes the project's configuration and codebase to fully support ECMAScript modules (ESM), updates dependencies, and introduces a tool version manager configuration. The most significant changes are grouped below:

Migration to ECMAScript Modules (ESM):

  • To support @actions/cache version ^6.0.0
  • Converted eslint.config.js from CommonJS (require/module.exports) to ESM (import/export default) syntax.
  • Added "type": "module" to package.json to enable ESM support throughout the project.
  • Updated internal imports in src/installer.ts and src/main.ts to use explicit .js extensions, as required by ESM. [1] [2]

Dependency Updates:

  • Upgraded @actions/cache dependency in package.json from ^3.2.4 to ^6.0.0.

Tooling Configuration:

  • Added a mise.toml file to specify Node.js version 20 for development environment consistency. (Node 20 is End-of-Life. Upgrading to Node 22 is strongly recommended!)

Test

Before

image

After First

image

After Second

image

@luckyabsoluter
Copy link
Copy Markdown
Author

workaround: nttld/setup-ndk@5bc54e77d3f78364d4e333b1c8eedcf9414c5e64

@raftario
Copy link
Copy Markdown
Member

Closed in favour of #575 which should be available as a tag by the time you read this :)

@raftario raftario closed this Feb 11, 2026
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.

Request to upgrade because of Cache service responded with 400

2 participants