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",