Skip to content

Commit 2e564a0

Browse files
salmanmkcparkerbxyz
andcommitted
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 <[email protected]> (cherry picked from commit 6178938)
1 parent fee1f7d commit 2e564a0

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
hello-world:
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/create-github-app-token@v2
31+
- uses: actions/create-github-app-token@v3
3232
id: app-token
3333
with:
3434
app-id: ${{ vars.APP_ID }}
@@ -47,13 +47,13 @@ jobs:
4747
auto-format:
4848
runs-on: ubuntu-latest
4949
steps:
50-
- uses: actions/create-github-app-token@v2
50+
- uses: actions/create-github-app-token@v3
5151
id: app-token
5252
with:
5353
# required
5454
app-id: ${{ vars.APP_ID }}
5555
private-key: ${{ secrets.PRIVATE_KEY }}
56-
- uses: actions/checkout@v4
56+
- uses: actions/checkout@v5
5757
with:
5858
token: ${{ steps.app-token.outputs.token }}
5959
ref: ${{ github.head_ref }}
@@ -73,7 +73,7 @@ jobs:
7373
auto-format:
7474
runs-on: ubuntu-latest
7575
steps:
76-
- uses: actions/create-github-app-token@v2
76+
- uses: actions/create-github-app-token@v3
7777
id: app-token
7878
with:
7979
# required
@@ -98,7 +98,7 @@ jobs:
9898
auto-format:
9999
runs-on: ubuntu-latest
100100
steps:
101-
- uses: actions/create-github-app-token@v2
101+
- uses: actions/create-github-app-token@v3
102102
id: app-token
103103
with:
104104
# required
@@ -135,7 +135,7 @@ jobs:
135135
hello-world:
136136
runs-on: ubuntu-latest
137137
steps:
138-
- uses: actions/create-github-app-token@v2
138+
- uses: actions/create-github-app-token@v3
139139
id: app-token
140140
with:
141141
app-id: ${{ vars.APP_ID }}
@@ -157,7 +157,7 @@ jobs:
157157
hello-world:
158158
runs-on: ubuntu-latest
159159
steps:
160-
- uses: actions/create-github-app-token@v2
160+
- uses: actions/create-github-app-token@v3
161161
id: app-token
162162
with:
163163
app-id: ${{ vars.APP_ID }}
@@ -182,7 +182,7 @@ jobs:
182182
hello-world:
183183
runs-on: ubuntu-latest
184184
steps:
185-
- uses: actions/create-github-app-token@v2
185+
- uses: actions/create-github-app-token@v3
186186
id: app-token
187187
with:
188188
app-id: ${{ vars.APP_ID }}
@@ -207,7 +207,7 @@ jobs:
207207
hello-world:
208208
runs-on: ubuntu-latest
209209
steps:
210-
- uses: actions/create-github-app-token@v2
210+
- uses: actions/create-github-app-token@v3
211211
id: app-token
212212
with:
213213
app-id: ${{ vars.APP_ID }}
@@ -249,7 +249,7 @@ jobs:
249249
owners-and-repos: ${{ fromJson(needs.set-matrix.outputs.matrix) }}
250250
251251
steps:
252-
- uses: actions/create-github-app-token@v2
252+
- uses: actions/create-github-app-token@v3
253253
id: app-token
254254
with:
255255
app-id: ${{ vars.APP_ID }}
@@ -279,7 +279,7 @@ jobs:
279279
steps:
280280
- name: Create GitHub App token
281281
id: create_token
282-
uses: actions/create-github-app-token@v2
282+
uses: actions/create-github-app-token@v3
283283
with:
284284
app-id: ${{ vars.GHES_APP_ID }}
285285
private-key: ${{ secrets.GHES_APP_PRIVATE_KEY }}
@@ -318,7 +318,7 @@ steps:
318318
echo "private-key=$private_key" >> "$GITHUB_OUTPUT"
319319
- name: Generate GitHub App Token
320320
id: app-token
321-
uses: actions/create-github-app-token@v2
321+
uses: actions/create-github-app-token@v3
322322
with:
323323
app-id: ${{ vars.APP_ID }}
324324
private-key: ${{ steps.decode.outputs.private-key }}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,6 @@ outputs:
136136
app-slug:
137137
description: "GitHub App slug"
138138
runs:
139-
using: "node20"
139+
using: "node24"
140140
main: "dist/main.cjs"
141141
post: "dist/post.cjs"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"version": "2.2.2",
66
"description": "GitHub Action for creating a GitHub App Installation Access Token",
77
"engines": {
8-
"node": ">=20"
8+
"node": ">=24.4.0"
99
},
1010
"packageManager": "[email protected]",
1111
"scripts": {
12-
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node20.0.0 --packages=bundle",
12+
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --packages=bundle",
1313
"test": "c8 --100 ava tests/index.js",
1414
"coverage": "c8 report --reporter html",
1515
"postcoverage": "open-cli coverage/index.html"

0 commit comments

Comments
 (0)