Skip to content

Commit 39e4141

Browse files
committed
ci(workflows): adding changelog sections config
1 parent d23199a commit 39e4141

File tree

6 files changed

+130
-12
lines changed

6 files changed

+130
-12
lines changed

.github/config/changelog.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use strict'
2+
const config = require('conventional-changelog-conventionalcommits');
3+
4+
module.exports = config({
5+
"types": [
6+
{ type: 'feat', section: '🚀 New features and improvements' },
7+
{ type: 'fix', section: '🐛 Bug fixes' },
8+
{ type: 'chore', hidden: true },
9+
{ type: 'docs', hidden: true },
10+
{ type: 'style', hidden: true },
11+
{ type: 'refactor', section: '👻 Maintenance' },
12+
{ type: 'perf', section: '👻 Maintenance' },
13+
{ type: 'test', section: '🚦 Tests' },
14+
]
15+
})

.github/config/package-lock.json

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/config/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "config",
3+
"version": "1.0.0",
4+
"main": "changelog.js",
5+
"scripts": {
6+
"test": "echo \"Error: no test specified\" && exit 1"
7+
},
8+
"keywords": [],
9+
"author": "",
10+
"license": "ISC",
11+
"description": "",
12+
"dependencies": {
13+
"conventional-changelog-conventionalcommits": "^4.6.1"
14+
}
15+
}

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v4
1515

16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 'lts/*'
20+
21+
- name: Install packages
22+
run: |
23+
cd .github/config
24+
ls
25+
npm install
26+
1627
- name: Create Release Notes
1728
id: chglg
1829
uses: TriPSs/conventional-changelog-action@v5
@@ -21,6 +32,8 @@ jobs:
2132
skip-commit: "true"
2233
git-user-name: "LucasMendesl"
2334
git-user-email: "mendes_lucas2006@hotmail.com"
35+
config-file-path: "./.github/config/changelog.js"
36+
skip-version-file: "true"
2437

2538
- name: Create Release
2639
uses: softprops/action-gh-release@v1

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ beerus
1919

2020
# Dependency directories (remove the comment below to include it)
2121
# vendor/
22+
23+
#github actions deps
24+
node_modules

.versionrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)