Skip to content

Commit 6f8cc59

Browse files
authored
feat: configure @release-it/conventional-changelog (#1)
* feat: add @release-it/conventional-changelog plugin * feat: configure @release-it/conventional-changelog plugin * feat: add fetch-dept 0 to checkout step in release job * revert: version to 0.0.0 * feat: dry run
1 parent 0287014 commit 6f8cc59

File tree

4 files changed

+536
-8
lines changed

4 files changed

+536
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
uses: actions/checkout@v4
5454
with:
5555
token: ${{ steps.app-token.outputs.token }}
56+
fetch-depth: 0
5657

5758
- name: Setup
5859
uses: ./.github/actions/setup

.release-it.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,23 @@
55
},
66
"npm": {
77
"publish": false
8+
},
9+
"plugins": {
10+
"@release-it/conventional-changelog": {
11+
"preset": {
12+
"name": "angular",
13+
"types": {
14+
"feat": {
15+
"section": "Features",
16+
"hidden": false
17+
},
18+
"fix": {
19+
"section": "Bug Fixes",
20+
"hidden": false
21+
}
22+
}
23+
},
24+
"infile": "CHANGELOG.md"
25+
}
826
}
927
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
{
22
"name": "github-actions-playground",
3+
"version": "0.0.0",
34
"packageManager": "[email protected]",
45
"scripts": {
5-
"release": "release-it --ci",
6+
"release": "release-it --dry-run",
67
"build": "tsc",
78
"lint": "eslint ./src"
89
},
910
"devDependencies": {
1011
"@eslint/js": "9.19.0",
12+
"@release-it/conventional-changelog": "10.0.0",
1113
"eslint": "9.19.0",
1214
"globals": "15.14.0",
1315
"release-it": "18.1.2",
1416
"typescript": "5.7.3",
1517
"typescript-eslint": "8.21.0"
1618
},
17-
"version": "0.0.5",
1819
"engines": {
1920
"node": "=18.20.6"
2021
}

0 commit comments

Comments
 (0)