Skip to content

Commit

Permalink
Merge pull request #8 from JunNishimura/feature/add_release_workflow
Browse files Browse the repository at this point in the history
featu: add release workflow
  • Loading branch information
JunNishimura authored Mar 31, 2024
2 parents f41ba82 + babd9b7 commit 95e87a7
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
name: Release
needs: [golangci, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: run semantic release
if: github.repository == 'JunNishimura/casbin-bun-adapter' && github.event_name == 'push'
run: |
npm install --save-dev semantic-release@latest
npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "docs/CHANGELOG.md"
}
],
[
"@semantic-release/git",
{
"assets": ["docs/CHANGELOG.md"]
}
]
]
}

0 comments on commit 95e87a7

Please sign in to comment.