kvalita 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/configs/semantic-release.json +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,17 +42,17 @@ Create a `commitlint.json` file in your project root:
|
|
|
42
42
|
|
|
43
43
|
### [Semantic Release](https://github.com/semantic-release/semantic-release) Configuration
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
Use the `--extends` flag in your CI workflow:
|
|
46
46
|
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
47
|
+
```yaml
|
|
48
|
+
- name: Release
|
|
49
|
+
run: bunx semantic-release --extends kvalita/semantic-release
|
|
51
50
|
```
|
|
52
51
|
|
|
53
|
-
This configuration
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
This configuration includes:
|
|
53
|
+
- Branches: `main`, `next` (prerelease), `beta` (prerelease)
|
|
54
|
+
- `conventionalcommits` preset with `feat!:` syntax for breaking changes
|
|
55
|
+
- [npm provenance](https://docs.npmjs.com/generating-provenance-statements) (requires `id-token: write` permission)
|
|
56
56
|
|
|
57
57
|
### [Lefthook](https://github.com/evilmartians/lefthook) Configuration
|
|
58
58
|
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/semantic-release.json",
|
|
3
|
+
"branches": [
|
|
4
|
+
"main",
|
|
5
|
+
{ "name": "beta", "channel": "beta", "prerelease": "beta" },
|
|
6
|
+
{ "name": "next", "channel": "next", "prerelease": "next" }
|
|
7
|
+
],
|
|
3
8
|
"plugins": [
|
|
4
9
|
[
|
|
5
10
|
"@semantic-release/commit-analyzer",
|
|
6
11
|
{
|
|
7
12
|
"preset": "conventionalcommits",
|
|
8
|
-
"parserOpts": {
|
|
9
|
-
"breakingHeaderPattern": "^(\\w*)(?:\\((.*)\\))?!: (.*)$"
|
|
10
|
-
},
|
|
11
13
|
"releaseRules": [{ "breaking": true, "release": "major" }]
|
|
12
14
|
}
|
|
13
15
|
],
|
package/package.json
CHANGED