Skip to content

Commit

Permalink
feat: Add Semantic Versioning (#17)
Browse files Browse the repository at this point in the history
Signed-off-by: devajithvs <[email protected]>
  • Loading branch information
devajithvs authored Dec 5, 2021
1 parent c925006 commit 6812871
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,17 @@ jobs:
docker run -d -p 50051:50051 casbin/casbin-server
- name: Go Test
run: go test ./...
run: go test ./...

semantic-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run semantic-release
if: github.repository == 'casbin/casbin-go-client' && github.event_name == 'push'
run: |
export PATH="$(yarn global bin):$PATH"
yarn global add semantic-release
semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"debug": true,
"release": {
"branches": [
"master"
]
},
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}

0 comments on commit 6812871

Please sign in to comment.