Skip to content

Commit be8743f

Browse files
committed
feat: add semantic release
1 parent 191ac83 commit be8743f

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/release.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-22.04
10+
permissions:
11+
contents: write # for creating the gh release
12+
issues: write # for commenting on related issues
13+
pull-requests: write # for commenting on related pull-requests
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0 # semantic release needs all the history
19+
- uses: actions/setup-node@v2
20+
- name: Release
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
run: npx semantic-release@19

.releaserc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"branches": ["main"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
"@semantic-release/github"
7+
]
8+
}

0 commit comments

Comments
 (0)