diff --git a/.markdownlint.cjs b/.markdownlint.cjs index c46031f..45519ce 100644 --- a/.markdownlint.cjs +++ b/.markdownlint.cjs @@ -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 + } }; diff --git a/CHANGELOG.md b/CHANGELOG.md index bb9ae28..f022c28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/package.json b/package.json index aff7c8e..b15af38 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/release.config.js b/release.config.js index c4416cc..408ed32 100644 --- a/release.config.js +++ b/release.config.js @@ -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]', @@ -28,6 +35,7 @@ export default { ], }, ], + '@semantic-release/npm', ], preset: 'conventionalcommits', presetConfig: {