Skip to content

Commit

Permalink
Update github actions, also test node.js 20
Browse files Browse the repository at this point in the history
Ok nodejs <14 are out

fix typo

fix packaging because incompatible lock file

try build nodejs 14 too again

try nodejs 10 and 12 again in CI

ok we can keep nodejs 10+

do not build nodejs 14
  • Loading branch information
Apollon77 authored and rzr committed Feb 11, 2024
1 parent 3c98c38 commit 216e342
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16,x, 18.x]
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nodepackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-2019]
node_version: [12, 14, 16, 18]
node_version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@master
with:
node-version: 16.0.0
node-version: 18.0.0
- name: Publish if version has been updated
uses: pascalgn/npm-publish-action@master
with: # All of theses inputs are optional
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"devDependencies": {
"jshint": "^2.13.6"
},
"engines": {
"node": ">=10.0.0"
},
"scripts": {
"install": "node-pre-gyp install --build-from-source",
"test": "jshint lib/*.js && node test.js"
Expand Down

0 comments on commit 216e342

Please sign in to comment.