Skip to content

Commit

Permalink
feat(docs): 📝 add changelog.md generation to repository
Browse files Browse the repository at this point in the history
Generate a changelog.md file from conventional commits. This allows the user to track changes easier.
  • Loading branch information
Abuesgen committed Mar 31, 2023
1 parent 01ee69c commit 6fce777
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 94 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
- name: Release
env:
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
run: npx --package @semantic-release/git semantic-release
run: npx --package @semantic-release/git --package @semantic-release/changelog semantic-release
210 changes: 117 additions & 93 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,101 +1,125 @@
{
"branches": [
"main",
"branches": [
"main",
{
"name": "dev",
"channel": "dev",
"prerelease": "rc"
}
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"name": "dev",
"channel": "dev",
"prerelease": "rc"
}
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"releaseRules": [
{
"type": "docs",
"scope": "README",
"release": "patch"
},
{
"type": "perf",
"release": "patch"
},
{
"type": "test",
"release": "patch"
},
{
"type": "build",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
},
{
"type": "style",
"release": "patch"
},
{
"type": "ci",
"release": "minor"
}
],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
"preset": "angular",
"releaseRules": [
{
"type": "docs",
"scope": "README",
"release": "patch"
},
{
"type": "perf",
"release": "patch"
},
{
"type": "test",
"release": "patch"
},
{
"type": "build",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
},
{
"type": "style",
"release": "patch"
},
{
"type": "ci",
"release": "minor"
}
],
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES",
"BREAKING"
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "angular",
"releaseRules": [
{
"type": "docs",
"scope": "README",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
},
{
"type": "style",
"release": "patch"
},
{
"type": "ci",
"release": "minor"
},
{
"type": "perf",
"release": "patch"
},
{
"type": "test",
"release": "patch"
},
{
"type": "build",
"release": "patch"
}
],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "angular",
"releaseRules": [
{
"type": "docs",
"scope": "README",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
},
"writerOpts": {
"commitsSort": ["subject", "scope"]
{
"type": "style",
"release": "patch"
},
{
"type": "ci",
"release": "minor"
},
{
"type": "perf",
"release": "patch"
},
{
"type": "test",
"release": "patch"
},
{
"type": "build",
"release": "patch"
}
],
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES",
"BREAKING"
]
},
"writerOpts": {
"commitsSort": [
"subject",
"scope"
]
}
],
[
"@semantic-release/github"
],
["@semantic-release/git", {
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}]
}
],
[
"@semantic-release/github"
],
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/git",
{
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}",
"assets": [
"CHANGELOG.md"
]
}
]
}
]
}

0 comments on commit 6fce777

Please sign in to comment.