Skip to content

Commit 67c23b2

Browse files
committed
build(use-long-press): Move semantic release config to project.json
1 parent eeb7900 commit 67c23b2

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

packages/use-long-press/project.json

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

0 commit comments

Comments
 (0)