Skip to content

Commit 77d4336

Browse files
committed
ci: add Node.js 22 support and drop Node.js 16 support
Signed-off-by: Aditya-PS-05 <[email protected]>
1 parent 1e89833 commit 77d4336

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

.github/workflows/node-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
node-version: [18, 20]
18+
node-version: [18, 20, 22]
1919
steps:
2020
- name: Checkout Repository
2121
uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18-
- uses: actions/setup-node@v3
18+
- uses: actions/setup-node@v4
1919
with:
20-
node-version: '20.x'
20+
node-version: '22.x'
2121

2222
publish-gpr:
2323
needs: build
@@ -33,9 +33,9 @@ jobs:
3333
with:
3434
version: ${{ github.event.release.tag_name }}
3535

36-
- uses: actions/setup-node@v3
36+
- uses: actions/setup-node@v4
3737
with:
38-
node-version: '20.x'
38+
node-version: '22.x'
3939
registry-url: "https://registry.npmjs.org"
4040
scope: "@sistent"
4141
- run: |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Before you begin, ensure you have the following installed on your system:
1212

1313
### How to get started
1414

15-
Make sure you have `npm` on `node@16` and above. The CI workflows checks for in `node@16`, `node@18` and `node@20`
15+
Make sure you have `npm` on `node@18` and above. The CI workflows checks for in `node@18`, `node@20` and `node@22`
1616

1717
<div>&nbsp;</div>
1818

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@
9797
"optional": true
9898
}
9999
},
100+
"engines": {
101+
"node": ">=18.0.0",
102+
"npm": ">=8.0.0"
103+
},
100104
"publishConfig": {
101105
"access": "public"
102106
},

site/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"keywords": [
88
"gatsby"
99
],
10+
"engines": {
11+
"node": ">=18.0.0",
12+
"npm": ">=8.0.0"
13+
},
1014
"scripts": {
1115
"develop": "gatsby develop",
1216
"start": "gatsby develop",

0 commit comments

Comments
 (0)