Skip to content

Commit 1033557

Browse files
feat: update engines to >=18 and use pkgjs/action (#22)
* ci: use pkgjs/action * feat!: update engines --------- Co-authored-by: Wes Todd <wes@wesleytodd.com>
1 parent ad16081 commit 1033557

2 files changed

Lines changed: 11 additions & 13 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
name: Test
2-
on: push
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
39
jobs:
410
test:
5-
runs-on: ubuntu-latest
6-
strategy:
7-
matrix:
8-
node-version: [10.x, 12.x, 13.x]
9-
steps:
10-
- uses: actions/checkout@v2
11-
- name: Use Node.js ${{ matrix.node-version }}
12-
uses: actions/setup-node@v1
13-
with:
14-
node-version: ${{ matrix.node-version }}
15-
- name: npm install and test
16-
run: npm it
11+
uses: pkgjs/action/.github/workflows/node-test.yaml@v0

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,8 @@
4747
},
4848
"bin": {
4949
"nv": "./bin/nv"
50+
},
51+
"engines": {
52+
"node": "^18 || ^20 || ^22"
5053
}
5154
}

0 commit comments

Comments
 (0)