Skip to content

Commit 253ec57

Browse files
authored
ci: fix release (#54)
1 parent dfa4a4b commit 253ec57

File tree

2 files changed

+3888
-3964
lines changed

2 files changed

+3888
-3964
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: CI
22

3-
on: [ push, pull_request ]
3+
on: [push, pull_request]
44

55
jobs:
66
lint:
@@ -21,7 +21,7 @@ jobs:
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

@@ -65,7 +65,7 @@ jobs:
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:

0 commit comments

Comments
 (0)