Skip to content

Commit 10ae095

Browse files
committed
fix: github action bot
Signed-off-by: closetool <[email protected]>
1 parent 6aa5aaa commit 10ae095

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/ci.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@ jobs:
5252
steps:
5353

5454
- uses: actions/checkout@v2
55+
5556
- name: Run semantic-release
56-
uses: go-semantic-release/action@v1
5757
if: github.repository == 'casbin/gorm-adapter' && github.event_name == 'push'
58-
with:
59-
github-token: ${{ secrets.GH_TOKEN }}
58+
run: |
59+
npm install --save-dev [email protected]
60+
npx semantic-release
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"debug": true,
3+
"branches": [
4+
"+([0-9])?(.{+([0-9]),x}).x",
5+
"master",
6+
{
7+
"name": "beta",
8+
"prerelease": true
9+
}
10+
],
11+
"plugins": [
12+
"@semantic-release/commit-analyzer",
13+
"@semantic-release/release-notes-generator",
14+
"@semantic-release/github"
15+
]
16+
}

0 commit comments

Comments
 (0)