From b2f5ae44771b5e7510b22158f682983fb8bf7aef Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Tue, 31 Jan 2023 18:58:02 -0800 Subject: [PATCH] ci(release): lint readme and changelog before committing --- .versionrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.versionrc.json b/.versionrc.json index beba780fd88..b1874236dfe 100644 --- a/.versionrc.json +++ b/.versionrc.json @@ -6,7 +6,7 @@ "changelog": true }, "scripts": { - "precommit": "ts-node --esm ./support/prepReleaseCommit.ts" + "precommit": "ts-node --esm ./support/prepReleaseCommit.ts && npm run lint:md && git add readme.md CHANGELOG.md" }, "header": "# Changelog\n\nThis document maintains a list of released versions and changes introduced by them.\nThis project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)\n\n" }