Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Commit de1e758

Browse files
authored
fix: add semantic release config (#13)
Make sure we publish the right directory.
1 parent fa5e21b commit de1e758

File tree

1 file changed

+85
-2
lines changed

1 file changed

+85
-2
lines changed

package.json

Lines changed: 85 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,91 @@
4343
"sourceType": "module"
4444
}
4545
},
46-
"publishConfig": {
47-
"directory": "dist"
46+
"release": {
47+
"branches": [
48+
"master"
49+
],
50+
"plugins": [
51+
[
52+
"@semantic-release/commit-analyzer",
53+
{
54+
"preset": "conventionalcommits",
55+
"releaseRules": [
56+
{
57+
"breaking": true,
58+
"release": "major"
59+
},
60+
{
61+
"revert": true,
62+
"release": "patch"
63+
},
64+
{
65+
"type": "feat",
66+
"release": "minor"
67+
},
68+
{
69+
"type": "fix",
70+
"release": "patch"
71+
},
72+
{
73+
"type": "chore",
74+
"release": "patch"
75+
},
76+
{
77+
"type": "docs",
78+
"release": "patch"
79+
},
80+
{
81+
"type": "test",
82+
"release": "patch"
83+
},
84+
{
85+
"scope": "no-release",
86+
"release": false
87+
}
88+
]
89+
}
90+
],
91+
[
92+
"@semantic-release/release-notes-generator",
93+
{
94+
"preset": "conventionalcommits",
95+
"presetConfig": {
96+
"types": [
97+
{
98+
"type": "feat",
99+
"section": "Features"
100+
},
101+
{
102+
"type": "fix",
103+
"section": "Bug Fixes"
104+
},
105+
{
106+
"type": "chore",
107+
"section": "Trivial Changes"
108+
},
109+
{
110+
"type": "docs",
111+
"section": "Trivial Changes"
112+
},
113+
{
114+
"type": "test",
115+
"section": "Tests"
116+
}
117+
]
118+
}
119+
}
120+
],
121+
"@semantic-release/changelog",
122+
[
123+
"@semantic-release/npm",
124+
{
125+
"pkgRoot": "dist"
126+
}
127+
],
128+
"@semantic-release/github",
129+
"@semantic-release/git"
130+
]
48131
},
49132
"scripts": {
50133
"clean": "rimraf dist types",

0 commit comments

Comments
 (0)