Skip to content

Commit 948dd5d

Browse files
committed
upgrade CI to node 18 LTS
1 parent a526093 commit 948dd5d

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.github/workflows/nodejs.yml

+17-13
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: Node CI
22

33
on:
4+
push:
5+
branches:
6+
- main
47
pull_request:
58
branches:
6-
- main
9+
- main
10+
711
jobs:
812
build:
913
runs-on: ${{ matrix.os }}
@@ -14,15 +18,15 @@ jobs:
1418
os: [ubuntu-latest, windows-latest, macos-latest]
1519

1620
steps:
17-
- uses: actions/checkout@v1
18-
- name: Use Node.js 16.x
19-
uses: actions/setup-node@v1
20-
with:
21-
node-version: 16.x
22-
- name: npm install, build, and test
23-
run: |
24-
npm install
25-
npm run build --if-present
26-
npm test
27-
env:
28-
CI: true
21+
- uses: actions/checkout@v1
22+
- name: Use Node.js 18.x
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: 18.x
26+
- name: npm install, build, and test
27+
run: |
28+
npm install
29+
npm run build --if-present
30+
npm test
31+
env:
32+
CI: true

0 commit comments

Comments
 (0)