Skip to content

Commit f1e1f3e

Browse files
Chau TranChau Tran
Chau Tran
authored and
Chau Tran
committed
ci(repo): setup release it
1 parent 8c48eb0 commit f1e1f3e

File tree

4 files changed

+3403
-269
lines changed

4 files changed

+3403
-269
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ testem.log
3737
# System Files
3838
.DS_Store
3939
Thumbs.db
40+
41+
.angular
42+
.env

.release-it.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"plugins": {
3+
"@release-it/conventional-changelog": {
4+
"preset": {
5+
"name": "conventionalcommits",
6+
"types": [
7+
{
8+
"type": "feat",
9+
"section": "Features"
10+
},
11+
{
12+
"type": "fix",
13+
"section": "Bug Fixes"
14+
},
15+
{
16+
"type": "cleanup",
17+
"section": "Cleanup"
18+
},
19+
{
20+
"type": "docs",
21+
"section": "Documentations"
22+
}
23+
]
24+
},
25+
"infile": "CHANGELOG.md"
26+
},
27+
"@release-it/bumper": {
28+
"in": "libs/core/version.json",
29+
"out": ["libs/core/version.json", "dist/libs/**/package.json"]
30+
}
31+
},
32+
"git": {
33+
"commitMessage": "chore: release ${version}"
34+
},
35+
"npm": {
36+
"publish": false
37+
},
38+
"github": {
39+
"release": true,
40+
"releaseName": "Release ${version}"
41+
},
42+
"hooks": {
43+
"before:bump": "pnpm exec nx run-many --target=package --projects=core,soba,postprocessing,cannon --parallel=false",
44+
"after:bump": ["git checkout -- package.json"]
45+
}
46+
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"name": "@platform/source",
33
"version": "0.0.0",
44
"license": "MIT",
5-
"scripts": {
6-
},
5+
"scripts": {},
76
"private": true,
8-
"dependencies": {
9-
},
107
"devDependencies": {
8+
"@nx/workspace": "16.3.2",
9+
"@release-it/bumper": "^4.0.2",
10+
"@release-it/conventional-changelog": "^5.1.1",
1111
"nx": "16.3.2",
12-
"@nx/workspace": "16.3.2"
12+
"release-it": "^15.11.0"
1313
}
1414
}

0 commit comments

Comments
 (0)