Skip to content

Commit 66c1793

Browse files
committed
ci: use conventional commits spec for commit messages
1 parent e8e9e57 commit 66c1793

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/deploy-plugin.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
uses: cycjimmy/semantic-release-action@v4
2121
with:
2222
semantic_version: latest # since our plugin has a devDependency on semantic-release, using latest keyword here will upgrade node_modules/ copy to the latest version for deployment
23-
branch: ${{ github.ref_name }}
23+
extra_plugins: |
24+
conventional-changelog-conventionalcommits
25+
@semantic-release/github
2426
env:
2527
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2628
NPM_TOKEN: ${{ secrets.NPM_PUSH_TOKEN }}

.releaserc.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"tagFormat": "${version}",
3+
"branches": [
4+
"main",
5+
{ "name": "beta", "prerelease": true },
6+
{ "name": "alpha", "prerelease": true }
7+
],
8+
"plugins": [
9+
["@semantic-release/commit-analyzer", {
10+
"preset": "conventionalcommits"
11+
}],
12+
["@semantic-release/release-notes-generator", {
13+
"preset": "conventionalcommits"
14+
}],
15+
"@semantic-release/npm",
16+
"@semantic-release/github"
17+
]
18+
}

0 commit comments

Comments
 (0)