Skip to content

Commit f1a63e8

Browse files
Update Node.js version to 24 in action and dependencies (#891)
* Update Node.js version to 24 in action and dependencies Bump the required Node.js version to 24 in action.yml and package.json. Update @types/node to ^24.1.0 to match the new Node.js version. * package.json version update * update to the latest versions --------- Co-authored-by: Aparna Jyothi <[email protected]>
1 parent b0a1180 commit f1a63e8

File tree

7 files changed

+30
-22
lines changed

7 files changed

+30
-22
lines changed

.github/workflows/basic-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
name: Basic validation
1717
uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main
1818
with:
19-
node-version: '20.x'
19+
node-version: '24.x'

.github/workflows/check-dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
name: Check dist/
1717
uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main
1818
with:
19-
node-version: '20.x'
19+
node-version: '24.x'

.github/workflows/publish-immutable-actions.yml

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

1515
steps:
1616
- name: Checking out
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
- name: Publish
1919
id: publish
2020
uses: actions/[email protected]

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
pull-requests: write
163163
runs-on: ubuntu-latest
164164
steps:
165-
- uses: actions/labeler@v5
165+
- uses: actions/labeler@v6
166166
```
167167

168168
#### Inputs
@@ -182,10 +182,10 @@ You might want to use action called [@actions/checkout](https://github.com/actio
182182

183183
```yml
184184
steps:
185-
- uses: actions/checkout@v4 # Uploads repository content to the runner
185+
- uses: actions/checkout@v5 # Uploads repository content to the runner
186186
with:
187187
repository: "owner/repositoryName" # The one of the available inputs, visit https://github.com/actions/checkout#readme to find more
188-
- uses: actions/labeler@v5
188+
- uses: actions/labeler@v6
189189
with:
190190
configuration-path: 'path/to/the/uploaded/configuration/file'
191191
@@ -208,7 +208,7 @@ jobs:
208208
steps:
209209
210210
# Label PRs 1, 2, and 3
211-
- uses: actions/labeler@v5
211+
- uses: actions/labeler@v6
212212
with:
213213
pr-number: |
214214
1
@@ -241,7 +241,7 @@ jobs:
241241
runs-on: ubuntu-latest
242242
steps:
243243
- id: label-the-PR
244-
uses: actions/labeler@v5
244+
uses: actions/labeler@v6
245245
246246
- id: run-frontend-tests
247247
if: contains(steps.label-the-PR.outputs.all-labels, 'frontend')

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ outputs:
2828
all-labels:
2929
description: 'A comma-separated list of all labels that the PR contains'
3030
runs:
31-
using: 'node20'
31+
using: 'node24'
3232
main: 'dist/index.js'

package-lock.json

Lines changed: 16 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"name": "labeler",
3-
"version": "5.0.0",
3+
"version": "6.0.0",
44
"description": "Labels pull requests by files altered",
55
"main": "lib/main.js",
6+
"engines": {
7+
"node": ">=24"
8+
},
69
"scripts": {
710
"build": "tsc && ncc build lib/main.js",
811
"format": "prettier --no-error-on-unmatched-pattern --config ./.prettierrc.js --write \"**/*.{ts,yml,yaml}\"",
@@ -36,7 +39,7 @@
3639
"@types/js-yaml": "^4.0.9",
3740
"@types/lodash.isequal": "^4.5.8",
3841
"@types/minimatch": "^5.1.2",
39-
"@types/node": "^20.11.30",
42+
"@types/node": "^24.1.0",
4043
"@typescript-eslint/eslint-plugin": "^7.3.1",
4144
"@typescript-eslint/parser": "^7.18.0",
4245
"@vercel/ncc": "^0.38.3",

0 commit comments

Comments
 (0)