Skip to content

Commit 9315c09

Browse files
Copilothsluoyz
andcommitted
Update Node.js versions to 18 and 20 in CI and package.json
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
1 parent 11ab9e1 commit 9315c09

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
strategy:
2525
matrix:
26-
node: [ ^14, ^16, ^18 ]
26+
node: [ ^18, ^20 ]
2727
steps:
2828
- uses: actions/checkout@v2
2929

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"repository": "https://github.com/casbin/casbin.js.git",
77
"author": "kingiw <kingiw@hotmail.com>",
88
"license": "Apache-2.0",
9+
"engines": {
10+
"node": ">=18.0.0"
11+
},
912
"scripts": {
1013
"format": "prettier --write 'src/**/*.ts'",
1114
"lint": "yarn eslint . --ext .js,.jsx,.ts,.tsx --fix",

0 commit comments

Comments
 (0)