Skip to content

Commit f53c6dd

Browse files
committed
ci: add semantic release action
1 parent 5b2c12e commit f53c6dd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Semantic Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Configure Semantic Release
15+
# Work around for non npm project
16+
# REF: https://github.com/cycjimmy/semantic-release-action/issues/115#issuecomment-1817264419
17+
run: echo '{"branches":[],"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/github"]}' > .releaserc.json
18+
- name: Create Release
19+
uses: cycjimmy/semantic-release-action@v4
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
with:
23+
branches: |
24+
["main"]

0 commit comments

Comments
 (0)