From 56579d1d9585557485fed2c31ba736d920a0f189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20He=C3=9Felmann?= Date: Tue, 23 Jun 2026 13:12:42 +0200 Subject: [PATCH] chore: bump Node.js from 20 to 24 in workflows and esbuild target Add engines field to package.json as the single source of truth for the Node version and reference it via node-version-file in workflows. Also unpin setup-node from v6.4.0 to v6. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/lint.yml | 6 +++--- .github/workflows/package.yml | 6 +++--- action.yml | 2 +- package.json | 5 ++++- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1a6b961..d4d481b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,10 +11,10 @@ jobs: - name: Checkout uses: actions/checkout@v7 - - name: Setup Node.js 20.x - uses: actions/setup-node@v6.4.0 + - name: Setup Node.js + uses: actions/setup-node@v6 with: - node-version: 20.x + node-version-file: package.json - name: Deps run: | diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index fb5c51d..c939cfd 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -25,10 +25,10 @@ jobs: token: ${{ secrets.RHACS_BOT_GITHUB_TOKEN }} ref: ${{ github.ref_name }} - - name: Setup Node.js 20.x - uses: actions/setup-node@v6.4.0 + - name: Setup Node.js + uses: actions/setup-node@v6 with: - node-version: 20.x + node-version-file: package.json - name: Deps run: | diff --git a/action.yml b/action.yml index d79a90e..374bc51 100644 --- a/action.yml +++ b/action.yml @@ -12,5 +12,5 @@ inputs: required: false description: "Skip TLS certificate verification for Central's API Endpoint" runs: - using: 'node20' + using: 'node24' main: 'dist/index.js' diff --git a/package.json b/package.json index 1fe5ca8..2c90c5f 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,12 @@ "format": "prettier --write '**/*.ts' '**/*.yml'", "format-check": "prettier --check '**/*.ts' '**/*.yml'", "lint": "eslint src/**/*.ts --fix", - "package": "esbuild src/main.ts --bundle --platform=node --target=node20 --outfile=dist/index.js --sourcemap", + "package": "esbuild src/main.ts --bundle --platform=node --target=node24 --outfile=dist/index.js --sourcemap", "all": "npm run build && npm run format && npm run lint && npm run package" }, + "engines": { + "node": ">=24" + }, "keywords": [], "author": "Red Hat", "license": "Apache-2.0",