From df561cffbde2cdd89f9b1142f0495f99efc4738a Mon Sep 17 00:00:00 2001 From: GiorgioBaldelli Date: Fri, 20 Mar 2026 12:49:00 +0100 Subject: [PATCH] Upgrade action runtime from node20 to node24 Node.js 20 actions are deprecated and will be forced to Node.js 24 by default starting June 2nd, 2026. This updates the action runtime and the package workflow build to use Node.js 24. --- .github/workflows/package.yml | 2 +- CHANGELOG.md | 2 ++ action.yml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 4526ede2..77f01cb0 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 24 - name: Install packages run: npm ci diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d6b46f6..a5f86afc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,8 @@ runuser, tolerant chown, stale config cleanup, and package installation. ### Changed +- Upgraded action runtime from `node20` to `node24` to resolve GitHub Actions deprecation warning (Node.js 20 actions deprecated June 2026). +- Updated `package.yml` workflow to build distribution with Node.js 24. - Switched user-data format from `#cloud-config` with `runcmd` to `#cloud-boothook`. This fixes compatibility with Amazon Linux 2023 and other AMIs where `cloud_final_modules` may be empty or misconfigured. diff --git a/action.yml b/action.yml index 3f4f12c2..8ecef0b8 100644 --- a/action.yml +++ b/action.yml @@ -173,5 +173,5 @@ outputs: AWS region where the EC2 instance was created. This is useful for subsequent AWS operations on the instance. runs: - using: node20 + using: node24 main: ./dist/index.js