Skip to content

Commit

Permalink
feat: add workflow release
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiseeeh committed Jun 21, 2024
1 parent 7a20285 commit 93e3041
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: release
on:
workflow_dispatch:

jobs:
main:
runs-on: ubuntu-latest
environment:
name: semver
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
24 changes: 24 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md"
]
}
],
"@semantic-release/github"
]
}

0 comments on commit 93e3041

Please sign in to comment.