Skip to content

Commit

Permalink
Merge pull request #323 from HistoryAtState/ci/releaserc
Browse files Browse the repository at this point in the history
CI improvements
  • Loading branch information
line-o committed Apr 22, 2024
2 parents 41f89f4 + ceb9c3b commit 460a84b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"plugins": [
["@semantic-release/commit-analyzer", {
"preset": "conventionalcommits",
"parserOpts": "./commit-parser-options.js",
"presetConfig": "./conventionalcommits.config.cjs",
"releaseRules": [
{ "type": "!(fix|feat|build|chore|ci|docs|style|refactor|perf|test)", "release": "patch" }
]
Expand All @@ -28,4 +28,4 @@
]
}]
]
}
}
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<exec executable="git" outputproperty="git.short-revision" failifexecutionfails="false" errorproperty="">
<arg value="--git-dir=${git.repo.path}"/>
<arg value="rev-parse"/>
<arg value="--short"/>
<arg value="--short=7"/>
<arg value="HEAD"/>
</exec>
<condition property="repository.short-revision" value="${git.short-revision}" else="unknown">
Expand Down
6 changes: 3 additions & 3 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
extends: ['@commitlint/config-conventional'],
rules: {
'body-max-line-length': [1, 'always', 200],
'body-max-line-length': [1, 'always', 200],
'type-empty': [1, 'never'],
'subject-empty': [1, 'never']
}
}
}
6 changes: 3 additions & 3 deletions commit-parser-options.js → conventionalcommits.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
// This will make the first __word__ in free-form commit message headers the __type__.
// With this non-empty type we can do a negated match (the type being anything but
// one of the other keywords with associated release rules).
module.exports = {
"headerPattern": /^(\w*)(?:\(([\w\$\.\-\* ]*)\))?\:? (.*)$/
};
module.exports = {
headerPattern: /^(\w*)(?:\(([\w\$\.\-\* ]*)\))?\:? (.*)$/
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.0",
"@semantic-release/github": "^9.2.1",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"conventional-changelog-conventionalcommits": "^7.0.2",
Expand Down

0 comments on commit 460a84b

Please sign in to comment.