From 1438db51c42faf2f37aa0c2a2748cbb1ad12b2ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Daoust?= Date: Thu, 7 May 2020 10:27:18 +0200 Subject: [PATCH] Release process: update changelog before commit See #44. The changelog was updated too late in the release process and the update wasn't included in the commit as a result. Using `after:bump` as specified in the documentation should fix the issue: https://github.com/release-it/release-it/blob/master/docs/changelog.md#auto-changelog --- .release-it.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.release-it.json b/.release-it.json index e245a2d0..a17613d6 100644 --- a/.release-it.json +++ b/.release-it.json @@ -1,7 +1,7 @@ { "hooks": { "after:init": ["npm test", "npm run lint"], - "before:release": "npx auto-changelog --package --commit-limit false --template src/changelog.hbs --commit-url https://github.com/w3c/browser-specs/commit/{id} --issue-url https://github.com/w3c/browser-specs/issues/{id} --merge-url https://github.com/w3c/browser-specs/pull/{id} --compare-url https://github.com/w3c/browser-specs/compare/{from}...{to}" + "after:bump": "npx auto-changelog --package --commit-limit false --template src/changelog.hbs --commit-url https://github.com/w3c/browser-specs/commit/{id} --issue-url https://github.com/w3c/browser-specs/issues/{id} --merge-url https://github.com/w3c/browser-specs/pull/{id} --compare-url https://github.com/w3c/browser-specs/compare/{from}...{to}" }, "git": { "commitMessage": "v${version}",