Skip to content

Commit

Permalink
chore: fix semantic-release config (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
dendavidov-affinidi authored Feb 3, 2023
1 parent 264e05e commit 7a17260
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
["@semantic-release/commit-analyzer", {
"preset": "angular",
"releaseRules": [
{"type": "feat", "release": "minor"},
{"type": "fix", "release": "patch"},
{"type": "test", "release": "patch"},
{"type": "build", "release": "patch"},
{"type": "chore", "release": "patch"},
{"type": "docs", "release": "patch"},
{"type": "perf", "release": "patch"}
],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
}
}],
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
Expand Down
8 changes: 8 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
// more rules: https://commitlint.js.org/#/reference-rules
rules: {
'type-enum': [2, 'always', ['feat', 'fix', 'perf', 'chore', 'docs', "test", "build"]],
'subject-empty': [2, 'never'],
},
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,9 @@
"dev": "nodemon -x 'npm run compile'",
"generate-translation": "npx @vscode/l10n-dev export -o ./l10n ./src",
"update-toolkit": "cp ./node_modules/@vscode/webview-ui-toolkit/dist/toolkit.js ./media/vendor",
"prepare": "husky install"
"prepare-commit-hooks": "npm install --global [email protected] [email protected] @commitlint/[email protected] @commitlint/[email protected]",
"prepare:dev": "is-ci || (husky install && npm run prepare-commit-hooks)",
"prepare": "node -e \"process.exit(process.env.NODE_ENV === 'production' ? 0 : 1)\" || npm run prepare:dev"
},
"devDependencies": {
"@affinidi/eslint-config": "^2.0.0-beta.0",
Expand Down

0 comments on commit 7a17260

Please sign in to comment.