Skip to content

Commit 07978c2

Browse files
authored
Merge pull request #13 from webdeveric/chore/release
Updated release config
2 parents cb312e9 + 6f77043 commit 07978c2

File tree

4 files changed

+50
-1
lines changed

4 files changed

+50
-1
lines changed

cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"CODEOWNERS",
66
"commitlint",
77
"commitlintplugin",
8+
"conventionalcommits",
89
"nvmrc",
910
"OIDC",
1011
"postbuild",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"author": "Eric King <[email protected]> (https://webdeveric.com/)",
1212
"repository": {
1313
"type": "git",
14-
"url": "git+https://github.com/webdeveric/commitlint-plugin-cspell.git"
14+
"url": "git+ssh://git@github.com/webdeveric/commitlint-plugin-cspell.git"
1515
},
1616
"bugs": {
1717
"url": "https://github.com/webdeveric/commitlint-plugin-cspell/issues"
@@ -57,6 +57,7 @@
5757
"@vitest/coverage-v8": "^3.1.3",
5858
"@webdeveric/eslint-config-ts": "^0.11.0",
5959
"@webdeveric/prettier-config": "^0.3.0",
60+
"conventional-changelog-conventionalcommits": "^8.0.0",
6061
"cspell": "^9.0.0",
6162
"eslint": "^8.57.1",
6263
"eslint-config-prettier": "^10.1.2",

pnpm-lock.yaml

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

release.config.mjs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,40 @@
33
*/
44
export default {
55
branches: ['main'],
6+
preset: 'conventionalcommits',
7+
plugins: [
8+
[
9+
'@semantic-release/commit-analyzer',
10+
{
11+
releaseRules: [
12+
{
13+
type: 'chore',
14+
scope: 'deps',
15+
release: 'minor',
16+
},
17+
{
18+
type: 'chore',
19+
scope: 'deps-dev',
20+
release: false,
21+
},
22+
{
23+
type: 'docs',
24+
release: 'patch',
25+
},
26+
{
27+
type: 'refactor',
28+
release: 'patch',
29+
},
30+
{
31+
type: 'chore',
32+
scope: 'spelling',
33+
release: 'patch',
34+
},
35+
],
36+
},
37+
],
38+
'@semantic-release/release-notes-generator',
39+
'@semantic-release/npm',
40+
'@semantic-release/github',
41+
],
642
};

0 commit comments

Comments
 (0)