Skip to content

fix(deps): Update core/actions to v3#282

Open
lourens-octopus wants to merge 1 commit intomainfrom
lourens/upgrade-actions-core-to-v3
Open

fix(deps): Update core/actions to v3#282
lourens-octopus wants to merge 1 commit intomainfrom
lourens/upgrade-actions-core-to-v3

Conversation

@lourens-octopus
Copy link
Contributor

@lourens-octopus lourens-octopus commented Mar 18, 2026

[sc-138245]

@actions/core v3 is ESM-only. To support this, the project's toolchain was migrated to ESM:

tsconfig.json

  • "module": "commonjs" → "module": "ESNext" so TypeScript emits ESM
  • Added "moduleResolution": "bundler" (designed for webpack/ncc; no .js extensions needed on relative imports)
  • "target": "es6" → "target": "ES2022" (appropriate for the Node.js 20 runtime)

package.json

  • Bumped @actions/core to 3.0.0
  • Jest: added extensionsToTreatAsEsm: [".ts"] and configured ts-jest with useESM: true
  • Removed the transformIgnorePatterns override for msw — no longer needed as msw v2 is already ESM and loads natively in ESM mode
  • Updated all test scripts to use node --experimental-vm-modules so Jest can load ESM modules at test time

No source code changes were required. The ncc bundler (webpack 5) continues to produce a standard CJS dist/index.js, so action.yml and the GitHub Actions
runtime are unaffected.

Successful run: https://github.com/OctopusDeployTesting/devex-action-tests/actions/runs/23269282819

@lourens-octopus lourens-octopus requested a review from a team as a code owner March 18, 2026 22:02
@lourens-octopus lourens-octopus changed the title Update core/actions to v3 fix(deps): Update core/actions to v3 Mar 18, 2026
@lourens-octopus lourens-octopus force-pushed the lourens/upgrade-actions-core-to-v3 branch 3 times, most recently from 380f105 to b3fefca Compare March 18, 2026 22:20
@lourens-octopus lourens-octopus force-pushed the lourens/upgrade-actions-core-to-v3 branch from b3fefca to e32c913 Compare March 18, 2026 22:25
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.

1 participant