File tree Expand file tree Collapse file tree 2 files changed +3888
-3964
lines changed
Expand file tree Collapse file tree 2 files changed +3888
-3964
lines changed Original file line number Diff line number Diff line change 11name : CI
22
3- on : [ push, pull_request ]
3+ on : [push, pull_request]
44
55jobs :
66 lint :
2121 run : yarn run fix
2222
2323 coverage :
24- needs : [ lint ]
24+ needs : [lint]
2525 runs-on : ubuntu-latest
2626 steps :
2727 - uses : actions/checkout@v2
@@ -50,11 +50,11 @@ jobs:
5050 parallel : true
5151
5252 test :
53- needs : [ lint ]
53+ needs : [lint]
5454 runs-on : ubuntu-latest
5555 strategy :
5656 matrix :
57- node : [ ^16, ^17, ^18 ]
57+ node : [^16, ^17, ^18]
5858 steps :
5959 - uses : actions/checkout@v2
6060
6565 mysql root password : password
6666
6767 - name : Set up Node.js
68- uses : actions/setup-node@v2.1.5
68+ uses : actions/setup-node@v3
6969 with :
7070 node-version : ${{ matrix.node }}
7171
@@ -76,15 +76,20 @@ jobs:
7676 run : yarn run test
7777
7878 semantic-release :
79- needs : [ lint,test,coverage ]
79+ needs : [lint, test, coverage ]
8080 runs-on : ubuntu-latest
8181 steps :
8282 - uses : actions/checkout@v2
8383
84+ - name : Set up Node.js
85+ uses : actions/setup-node@v3
86+ with :
87+ node-version : ^18
88+
8489 - name : Run semantic-release
8590 if : github.repository == 'node-casbin/typeorm-adapter' && github.event_name == 'push'
8691 run : |
87- yarn install --no-lockfile
92+ yarn install
8893 yarn run prepublish
8994 yarn run release
9095 env :
You can’t perform that action at this time.
0 commit comments