Skip to content

Commit 344775d

Browse files
authored
chore: updated node versioning to be latest of 18 (hydrogen) (base#560)
* updated node versioning to be latest of 18 (hydrogen) lts * check if build version update works w/ gh action
1 parent 48e2588 commit 344775d

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

.github/workflows/node.js.yml

+15-16
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,29 @@ name: Node.js CI
55

66
on:
77
push:
8-
branches: [ "master" ]
8+
branches: ['master']
99
pull_request:
10-
branches: [ "master" ]
10+
branches: ['master']
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615

1716
strategy:
1817
matrix:
19-
node-version: [16.x]
18+
node-version: [16.x, 18.x]
2019
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2120

2221
steps:
23-
- uses: actions/checkout@v3
24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v3
26-
with:
27-
node-version: ${{ matrix.node-version }}
28-
cache: 'npm'
29-
- name: Install dependencies
30-
run: yarn
31-
- name: Lint
32-
run: yarn lint
33-
- name: Build
34-
run: yarn build
22+
- uses: actions/checkout@v3
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: 'npm'
28+
- name: Install dependencies
29+
run: yarn
30+
- name: Lint
31+
run: yarn lint
32+
- name: Build
33+
run: yarn build

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.14
1+
lts/hydrogen

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"next-transpile-modules": "Next compatibility"
6666
},
6767
"engines": {
68-
"node": "18.14"
68+
"node": ">18.20.3"
6969
},
7070
"packageManager": "[email protected]",
7171
"dependencies": {

0 commit comments

Comments
 (0)