Skip to content

Commit d42d5c0

Browse files
Copilotjonrohan
andauthored
Update repository to Node.js v20 (#380)
* Initial plan * Update repository to Node.js v20 Co-authored-by: jonrohan <[email protected]> * Update ESLint plugin version and Node.js to v20 --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jonrohan <[email protected]> Co-authored-by: Jon Rohan <[email protected]>
1 parent d10759d commit d42d5c0

File tree

7 files changed

+15
-7
lines changed

7 files changed

+15
-7
lines changed

.changeset/lemon-pumas-prove.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-primer-react": major
3+
---
4+
5+
Update repository to Node.js v20

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Use Node.js
1414
uses: actions/setup-node@v4
1515
with:
16-
node-version: 18
16+
node-version: 20
1717
cache: 'npm'
1818
- run: npm ci
1919
- run: npm run format:check
@@ -25,7 +25,7 @@ jobs:
2525
- name: Use Node.js
2626
uses: actions/setup-node@v4
2727
with:
28-
node-version: 18
28+
node-version: 20
2929
cache: 'npm'
3030
- run: npm ci
3131
- run: npm test
@@ -37,7 +37,7 @@ jobs:
3737
- name: Use Node.js
3838
uses: actions/setup-node@v4
3939
with:
40-
node-version: 18
40+
node-version: 20
4141
cache: 'npm'
4242
- run: npm ci
4343
- run: npm run lint

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Node.js
1818
uses: actions/setup-node@v4
1919
with:
20-
node-version: 14
20+
node-version: 20
2121

2222
- name: Install dependencies
2323
run: npm ci

.github/workflows/release_canary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up Node.js
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: 14.x
26+
node-version: 20
2727

2828
- name: Install dependencies
2929
run: npm ci

.github/workflows/release_candidate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Node.js
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: 14.x
22+
node-version: 20
2323

2424
- name: Install dependencies
2525
run: npm ci

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v20

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"version": "7.0.2",
44
"description": "ESLint rules for Primer React",
55
"main": "src/index.js",
6+
"engines": {
7+
"node": ">=20"
8+
},
69
"scripts": {
710
"format": "prettier --cache --write '**/*.{js,css,md,mdx,ts,tsx,yml}'",
811
"format:check": "prettier --cache --list-different '**/*.{js,css,md,mdx,ts,tsx,yml}'",

0 commit comments

Comments
 (0)