Skip to content

Update @actions/cache and @actions/core to latest major versions#3

Merged
HiGarfield merged 2 commits intomainfrom
copilot/update-all-node-modules
Mar 26, 2026
Merged

Update @actions/cache and @actions/core to latest major versions#3
HiGarfield merged 2 commits intomainfrom
copilot/update-all-node-modules

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 26, 2026

Bumps @actions/cache v4→v6 and @actions/core v1→v3. Both packages dropped CommonJS in their new major versions, requiring the action scripts to be migrated to ESM.

Changes

  • package.json: Updated dependency versions; added "type": "module"
  • fetch.js / save.js / utils.js: Converted from CommonJS (require / module.exports) to ESM (import / export)
// Before
const core = require("@actions/core");
const cache = require("@actions/cache");
const { parseBooleanInput, buildBaseConfig } = require("./utils");

// After
import * as core from "@actions/core";
import * as cache from "@actions/cache";
import { parseBooleanInput, buildBaseConfig } from "./utils.js";

Copilot AI and others added 2 commits March 26, 2026 16:39
@HiGarfield HiGarfield marked this pull request as ready for review March 26, 2026 16:42
Copilot AI review requested due to automatic review settings March 26, 2026 16:43
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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 scripts to ESM to support the latest major versions of @actions/cache and @actions/core, which have dropped CommonJS.

Changes:

  • Replaced CommonJS require usage with ESM import syntax in the action entry script.
  • Updated local module imports to include the .js extension for ESM compatibility.

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

@HiGarfield HiGarfield merged commit 1eb67f6 into main Mar 26, 2026
1 check failed
@HiGarfield HiGarfield deleted the copilot/update-all-node-modules branch March 26, 2026 16:55
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.

3 participants