Skip to content

Commit

Permalink
ci(release): re-configure
Browse files Browse the repository at this point in the history
  • Loading branch information
Walheimat committed Mar 1, 2024
1 parent 900a20c commit d47628c
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 35 deletions.
58 changes: 56 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,64 @@
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
"preset": "conventionalcommits",
"releaseRules": [
{
"type": "improve",
"release": "patch"
},
{
"type": "refac",
"release": "patch"
}
],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
}
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "improve",
"section": "Improvements"
},
{
"type": "docs",
"section": "Improvements"
},
{
"type": "refac",
"hidden": true
},
{
"type": "chore",
"hidden": true
},
{
"type": "ci",
"hidden": true
},
{
"type": "test",
"hidden": true
}
]
}
}
],
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
Expand Down
53 changes: 20 additions & 33 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,23 @@
module.exports = {
rules: {
"header-max-length": [2, "always", 72], // GitHub's limit, GitLab's is 1 KiB
"type-empty": [2, "never"],
"type-enum": [
2,
"always",
[
"chore",
"ci",
"config",
"docs",
"feat",
"fix",
"improve",
"refac",
"style",
"test",
],
],
"scope-case": [2, "always", ["lower-case", "kebab-case"]],
"scope-empty": [2, "never"],
"subject-empty": [2, "never"],
"subject-case": [1, "always", ["lower-case"]],
"subject-full-stop": [2, "never"],
"body-empty": [1, "never"],
"body-leading-blank": [2, "always"],
"body-case": [2, "always", ["sentence-case"]],
"body-full-stop": [2, "always", "."],
"body-max-line-length": [2, "always", 70],
"footer-max-line-length": [2, "always", 70],
},
ignores: [
(commit) => commit.includes("fixup") || commit.includes("release"),
rules: {
"header-max-length": [2, "always", 72], // GitHub's limit, GitLab's is 1 KiB
"type-empty": [2, "never"],
"type-enum": [
2,
"always",
["chore", "ci", "docs", "feat", "fix", "improve", "refac", "test"],
],
"scope-case": [2, "always", ["lower-case", "kebab-case"]],
"scope-empty": [2, "never"],
"subject-empty": [2, "never"],
"subject-case": [1, "always", ["lower-case"]],
"subject-full-stop": [2, "never"],
"body-empty": [1, "never"],
"body-leading-blank": [2, "always"],
"body-case": [2, "always", ["sentence-case"]],
"body-full-stop": [2, "always", "."],
"body-max-line-length": [2, "always", 70],
"footer-max-line-length": [2, "always", 70],
},
ignores: [(commit) => commit.includes("fixup")],
};

0 comments on commit d47628c

Please sign in to comment.