docs: commit generated changelog to git

This commit is contained in:
Chen Asraf
2022-11-30 17:34:38 +02:00
parent c8ba502815
commit a48b45e957
3 changed files with 25 additions and 1 deletions

View File

@@ -29,6 +29,7 @@
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"@types/express": "^4.17.14",
"@types/jest": "^29.2.3",

View File

@@ -25,6 +25,9 @@ module.exports = {
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
parserOpts: {
noteKeywords: ['breaking'],
},
releaseRules: [
{ type: 'docs', hidden: true },
{ type: 'feat', section: 'Features' },
@@ -64,5 +67,11 @@ module.exports = {
assets: ['package.tgz'],
},
],
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md'],
},
],
],
}

View File

@@ -931,6 +931,20 @@
resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-3.0.0.tgz#30a3b97bbb5844d695eb22f9d3aa40f6a92770c2"
integrity sha512-5hiM4Un+tpl4cKw3lV4UgzJj+SmfNIDCLLw0TepzQxz9ZGV5ixnqkzIVF+3tp0ZHgcMKE+VNGHJjEeyFG2dcSw==
"@semantic-release/git@^10.0.1":
version "10.0.1"
resolved "https://registry.yarnpkg.com/@semantic-release/git/-/git-10.0.1.tgz#c646e55d67fae623875bf3a06a634dd434904498"
integrity sha512-eWrx5KguUcU2wUPaO6sfvZI0wPafUKAMNC18aXY4EnNcrZL86dEmpNVnC9uMpGZkmZJ9EfCVJBQx4pV4EMGT1w==
dependencies:
"@semantic-release/error" "^3.0.0"
aggregate-error "^3.0.0"
debug "^4.0.0"
dir-glob "^3.0.0"
execa "^5.0.0"
lodash "^4.17.4"
micromatch "^4.0.0"
p-reduce "^2.0.0"
"@semantic-release/github@^8.0.0":
version "8.0.7"
resolved "https://registry.yarnpkg.com/@semantic-release/github/-/github-8.0.7.tgz#643aee7a5cdd2acd3ae643bb90ad4ac796901de6"
@@ -4075,7 +4089,7 @@ methods@~1.1.2:
resolved "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz"
integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==
micromatch@^4.0.2, micromatch@^4.0.4:
micromatch@^4.0.0, micromatch@^4.0.2, micromatch@^4.0.4:
version "4.0.5"
resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz"
integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==