Skip to content

Commit 6178938

Browse files
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>
1 parent 8ab05a8 commit 6178938

File tree

10 files changed

+3615
-1575
lines changed

10 files changed

+3615
-1575
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- uses: actions/setup-node@v4
2626
with:
27-
node-version-file: .node-version
27+
node-version-file: package.json
2828
cache: 'npm'
2929

3030
- run: npm ci

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- uses: actions/setup-node@v4
2525
with:
26-
node-version-file: .node-version
26+
node-version-file: package.json
2727
cache: 'npm'
2828

2929
- run: npm ci
@@ -38,8 +38,8 @@ jobs:
3838
- uses: actions/checkout@v5
3939
- uses: actions/setup-node@v4
4040
with:
41-
node-version: 20
42-
cache: "npm"
41+
node-version-file: package.json
42+
cache: 'npm'
4343
- run: npm ci
4444
- run: npm run build
4545
- uses: ./ # Uses the action in the root directory

.github/workflows/update-permission-inputs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v5
2222
- uses: actions/setup-node@v4
2323
with:
24-
node-version-file: .node-version
24+
node-version-file: package.json
2525
cache: 'npm'
2626
- name: Install dependencies
2727
run: npm ci

.node-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

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
@@ -132,6 +132,6 @@ outputs:
132132
app-slug:
133133
description: "GitHub App slug"
134134
runs:
135-
using: "node20"
135+
using: "node24"
136136
main: "dist/main.cjs"
137137
post: "dist/post.cjs"

0 commit comments

Comments
 (0)