From 2e564a0bb8e7cc2b907b2401a2afe177882d4325 Mon Sep 17 00:00:00 2001 From: Salman Chishti Date: Fri, 15 Aug 2025 20:55:04 +0100 Subject: [PATCH] feat!: node 24 support (#275) BREAKING CHANGE: Requires [Actions Runner v2.327.1](https://github.com/actions/runner/releases/tag/v2.327.1) or later if you are using a self-hosted runner. --------- Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com> (cherry picked from commit 61789386cb26150ab580cab449a9ae053bb9fd24) --- README.md | 24 ++++++++++++------------ action.yml | 2 +- package.json | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index f969916..7e13c8d 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ jobs: hello-world: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v2 + - uses: actions/create-github-app-token@v3 id: app-token with: app-id: ${{ vars.APP_ID }} @@ -47,13 +47,13 @@ jobs: auto-format: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v2 + - uses: actions/create-github-app-token@v3 id: app-token with: # required app-id: ${{ vars.APP_ID }} private-key: ${{ secrets.PRIVATE_KEY }} - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: token: ${{ steps.app-token.outputs.token }} ref: ${{ github.head_ref }} @@ -73,7 +73,7 @@ jobs: auto-format: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v2 + - uses: actions/create-github-app-token@v3 id: app-token with: # required @@ -98,7 +98,7 @@ jobs: auto-format: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v2 + - uses: actions/create-github-app-token@v3 id: app-token with: # required @@ -135,7 +135,7 @@ jobs: hello-world: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v2 + - uses: actions/create-github-app-token@v3 id: app-token with: app-id: ${{ vars.APP_ID }} @@ -157,7 +157,7 @@ jobs: hello-world: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v2 + - uses: actions/create-github-app-token@v3 id: app-token with: app-id: ${{ vars.APP_ID }} @@ -182,7 +182,7 @@ jobs: hello-world: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v2 + - uses: actions/create-github-app-token@v3 id: app-token with: app-id: ${{ vars.APP_ID }} @@ -207,7 +207,7 @@ jobs: hello-world: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v2 + - uses: actions/create-github-app-token@v3 id: app-token with: app-id: ${{ vars.APP_ID }} @@ -249,7 +249,7 @@ jobs: owners-and-repos: ${{ fromJson(needs.set-matrix.outputs.matrix) }} steps: - - uses: actions/create-github-app-token@v2 + - uses: actions/create-github-app-token@v3 id: app-token with: app-id: ${{ vars.APP_ID }} @@ -279,7 +279,7 @@ jobs: steps: - name: Create GitHub App token id: create_token - uses: actions/create-github-app-token@v2 + uses: actions/create-github-app-token@v3 with: app-id: ${{ vars.GHES_APP_ID }} private-key: ${{ secrets.GHES_APP_PRIVATE_KEY }} @@ -318,7 +318,7 @@ steps: echo "private-key=$private_key" >> "$GITHUB_OUTPUT" - name: Generate GitHub App Token id: app-token - uses: actions/create-github-app-token@v2 + uses: actions/create-github-app-token@v3 with: app-id: ${{ vars.APP_ID }} private-key: ${{ steps.decode.outputs.private-key }} diff --git a/action.yml b/action.yml index 67616d4..ba4e915 100644 --- a/action.yml +++ b/action.yml @@ -136,6 +136,6 @@ outputs: app-slug: description: "GitHub App slug" runs: - using: "node20" + using: "node24" main: "dist/main.cjs" post: "dist/post.cjs" diff --git a/package.json b/package.json index dfa951c..dae3b18 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,11 @@ "version": "2.2.2", "description": "GitHub Action for creating a GitHub App Installation Access Token", "engines": { - "node": ">=20" + "node": ">=24.4.0" }, "packageManager": "npm@10.9.4", "scripts": { - "build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node20.0.0 --packages=bundle", + "build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --packages=bundle", "test": "c8 --100 ava tests/index.js", "coverage": "c8 report --reporter html", "postcoverage": "open-cli coverage/index.html"