Skip to content

feat: migrate action runtime from node20 to node24#153

Merged
TerryHowe merged 5 commits intooras-project:mainfrom
dylanmtaylor:fix-node24-build
Apr 2, 2026
Merged

feat: migrate action runtime from node20 to node24#153
TerryHowe merged 5 commits intooras-project:mainfrom
dylanmtaylor:fix-node24-build

Conversation

@dylanmtaylor
Copy link
Copy Markdown
Contributor

Migrates the action runtime from node20 to node24, based on the work by @cvs79 in #146 with additional fixes for the check-dist build failure.

Changes from #146:

  • action.yml: node20 -> node24
  • check-dist.yml: Node 16.x -> 24.x
  • Bump @actions/core and @actions/tool-cache
  • Rebuild dist/

Additional fixes:

  • Pin @types/node to ^24.0.0 (was ^25.5.0, which targets Node 25 and breaks TypeScript compilation)
  • Add "types": ["node"] to tsconfig.json (required by TypeScript 6)

Closes #145

cvs79 and others added 3 commits March 12, 2026 13:33
- Update action.yml: runs.using node20 -> node24
- Update check-dist.yml: build with Node.js 24.x (was 16.x)
- Bump @actions/core 2.0.1 -> 2.0.3 (latest CJS-compatible)
- Bump @actions/tool-cache 2.0.2 -> 3.0.1 (latest CJS-compatible)
- Bump version 0.1.0 -> 0.2.0
- Rebuild dist/ with updated dependencies

Node 20 reaches EOL in April 2026 and GitHub Actions will default
to Node 24 starting June 2, 2026. Note: node24 requires runner
v2.328.0+ and is incompatible with macOS 13.4 and lower.

Signed-off-by: Chris van Sluijsveld <cvs79@msn.com>
Signed-off-by: Terry Howe <thowe@nvidia.com>
- Pin @types/node to ^24.0.0 to match node24 runtime (^25.5.0 targets Node 25)
- Add "types": ["node"] to tsconfig.json (TypeScript 6 requires explicit type roots)
- Fixes check-dist CI failure

Signed-off-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
@dylanmtaylor
Copy link
Copy Markdown
Contributor Author

@TerryHowe this should address that check-dist failure in the other open PR. I left all commit authorship.

Co-authored-by: Terry Howe <terrylhowe@gmail.com>
Signed-off-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
@dylanmtaylor dylanmtaylor requested a review from TerryHowe April 2, 2026 21:00
Copy link
Copy Markdown
Member

@TerryHowe TerryHowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@TerryHowe TerryHowe merged commit be45691 into oras-project:main Apr 2, 2026
11 checks passed
@dylanmtaylor dylanmtaylor deleted the fix-node24-build branch April 2, 2026 21:06
@cvs79
Copy link
Copy Markdown
Contributor

cvs79 commented Apr 3, 2026

Thanks for merging. Didn't have any time this week to look at the feedback.

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.

Support for node24

3 participants