Skip to content

Commit 738531e

Browse files
committed
build(use-double-tap): Move semantic-release config to project.json
1 parent 33b2744 commit 738531e

File tree

1 file changed

+49
-1
lines changed

1 file changed

+49
-1
lines changed

packages/use-double-tap/project.json

+49-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,55 @@
6565
}
6666
},
6767
"semantic-release": {
68-
"executor": "@theunderscorer/nx-semantic-release:semantic-release"
68+
"executor": "@theunderscorer/nx-semantic-release:semantic-release",
69+
"options": {
70+
"changelog": true,
71+
"git": true,
72+
"npm": true,
73+
"github": true,
74+
"repositoryUrl": "https://github.com/minwork/react",
75+
"outputPath": "dist/packages/${PROJECT_NAME}",
76+
"tagFormat": "${PROJECT_NAME}-v${VERSION}",
77+
"commitMessage": "chore(release): Release ${PROJECT_NAME} v${nextRelease.version} [skip ci]",
78+
"branches": [
79+
{
80+
"name": "main",
81+
"channel": "latest"
82+
},
83+
{
84+
"name": "next",
85+
"channel": "next",
86+
"prerelease": "rc"
87+
},
88+
{
89+
"name": "develop",
90+
"channel": "alpha",
91+
"prerelease": "alpha"
92+
}
93+
],
94+
"releaseRules": [
95+
{ "breaking": true, "release": "major" },
96+
{ "type": "docs", "release": "patch" },
97+
{ "type": "refactor", "release": "patch" },
98+
{ "type": "style", "release": "patch" },
99+
{ "type": "perf", "release": "patch" },
100+
{ "type": "build", "release": "patch" }
101+
],
102+
"preset": "conventionalcommits",
103+
"presetConfig": {
104+
"types": [
105+
{ "type": "feat", "section": "Features" },
106+
{ "type": "fix", "section": "Bug Fixes" },
107+
{ "type": "chore", "hidden": true },
108+
{ "type": "docs", "section": "Documentation" },
109+
{ "type": "style", "hidden": true },
110+
{ "type": "refactor", "section": "Refactors" },
111+
{ "type": "build", "section": "Build config" },
112+
{ "type": "perf", "hidden": true },
113+
{ "type": "test", "hidden": true }
114+
]
115+
}
116+
}
69117
}
70118
}
71119
}

0 commit comments

Comments
 (0)