Skip to content

Commit e40f780

Browse files
ci(release): fix release GitHub action (#494)
* fix(a): test * feat(b): test * ci(release): fix release GitHub action Signed-off-by: Agustín Ramiro Díaz <agustin.ramiro.diaz@gmail.com> * remove unused field Signed-off-by: Agustín Ramiro Díaz <agustin.ramiro.diaz@gmail.com> --------- Signed-off-by: Agustín Ramiro Díaz <agustin.ramiro.diaz@gmail.com>
1 parent f4de409 commit e40f780

File tree

3 files changed

+37
-6
lines changed

3 files changed

+37
-6
lines changed

.github/workflows/release-from-main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
node-version: "lts/*"
3030
- name: Install dependencies
31-
run: npm install @semantic-release/github @semantic-release/release-notes-generator @semantic-release/commit-analyzer
31+
run: npm install @semantic-release/github @semantic-release/release-notes-generator @semantic-release/commit-analyzer conventional-changelog-conventionalcommits
3232
- name: Release
3333
env:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,9 @@ receipt.json
139139
consensus/node_configs.json
140140

141141
# don't include the nodes configuration
142-
consensus/nodes/nodes.json
142+
consensus/nodes/nodes.json
143+
144+
# npm
145+
node_modules/
146+
package-lock.json
147+
package.json

release.config.js

+30-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,34 @@
11
module.exports = {
22
branches: ['main'],
3-
plugins: [
4-
'@semantic-release/commit-analyzer',
5-
'@semantic-release/release-notes-generator',
6-
'@semantic-release/github'
3+
"plugins": [
4+
[
5+
"@semantic-release/commit-analyzer",
6+
{
7+
"preset": "conventionalcommits",
8+
"releaseRules": [
9+
{ "type": "feat", "release": "minor" },
10+
{ "type": "*", "release": "patch" },
11+
],
12+
}
13+
],
14+
[
15+
"@semantic-release/release-notes-generator",
16+
{
17+
"preset": "conventionalcommits",
18+
"presetConfig": {
19+
"types": [
20+
{ "type": "feat", "section": "Features" },
21+
{ "type": "fix", "section": "Bug Fixes" },
22+
{ "type": "chore", "section": "Miscellaneous" },
23+
{ "type": "docs", "section": "Miscellaneous" },
24+
{ "type": "style", "section": "Miscellaneous" },
25+
{ "type": "refactor", "section": "Miscellaneous" },
26+
{ "type": "perf", "section": "Miscellaneous" },
27+
{ "type": "test", "section": "Miscellaneous" }
28+
]
29+
},
30+
}
31+
],
32+
'@semantic-release/github',
733
]
834
};

0 commit comments

Comments
 (0)