Skip to content

Commit

Permalink
chore: update CHANGELOG.md generation to comply with linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
zavoloklom committed Sep 14, 2024
1 parent 2c12132 commit 43a7efa
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .markdownlint.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ module.exports = {
},
"MD013": {
"line_length": 120,
"ignore_code_blocks": true
"ignore_code_blocks": true,
"ignore_urls": true,
"tables": false
},
"MD024": {
"siblings_only": true
}
};
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

> This file was generated automatically using [@semantic-release](https://github.com/semantic-release/semantic-release).
## 1.0.0 (2024-09-14)

### Features

* initial release ([6969503](https://github.com/zavoloklom/docker-compose-linter/commit/69695032957556141669ea6a5daf213ba8479ffa))
- initial release ([6969503](https://github.com/zavoloklom/docker-compose-linter/commit/69695032957556141669ea6a5daf213ba8479ffa))
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@
"lint": "npm run eslint && npm run markdownlint",
"eslint": "eslint .",
"eslint:fix": "eslint . --fix",
"markdownlint": "markdownlint-cli2 \"**/*.md\" \"#node_modules\"",
"markdownlint": "markdownlint-cli2 \"**/*.md\" \"#node_modules\" \"#CHANGELOG.md\"",
"markdownlint:fix": "markdownlint-cli2 --fix \"**/*.md\" \"#node_modules\"",
"markdownlint:fix-changelog": "markdownlint-cli2 --fix \"CHANGELOG.md\"",
"test": "ava --verbose",
"test:coverage": "rimraf coverage && mkdir -p coverage && c8 ava --tap | tap-xunit --package='dclint' > ./coverage/junit.xml",
"update-compose-schema": "node ./scripts/download-compose-schema.cjs"
Expand Down
12 changes: 10 additions & 2 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ export default {
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
'@semantic-release/npm',
[
'@semantic-release/changelog',
{
changelogTitle:
'# Changelog' +
'\n\n> This file was generated automatically using [@semantic-release](https://github.com/semantic-release/semantic-release).',
},
],
[
'@semantic-release/git',
{
prepareCmd: 'npm run markdownlint:fix-changelog || true',
assets: ['package.json', 'package-lock.json', 'CHANGELOG.md'],
// eslint-disable-next-line no-template-curly-in-string
message: 'release: ${nextRelease.version} [skip ci]',
Expand All @@ -28,6 +35,7 @@ export default {
],
},
],
'@semantic-release/npm',
],
preset: 'conventionalcommits',
presetConfig: {
Expand Down

0 comments on commit 43a7efa

Please sign in to comment.