From a4a122a8986e406c407b771769fce0579b23b5df Mon Sep 17 00:00:00 2001 From: Thomas Rupprecht Date: Thu, 25 May 2023 00:09:11 +0200 Subject: [PATCH] fix: correctly update the changelog on release --- CHANGELOG.md | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ec961c..1b6208d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. ### ⛰️ Features - Add commitlint to enforce commit message format +- Update the changelog automatically on every commit ## \[[0.9.2](https://gitea.usrspace.at/XimeX/usrspace-browser-addon/releases/tag/v0.9.2)] - 2023-05-24 diff --git a/package.json b/package.json index 355b4a1..9440b91 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,8 @@ "postbuild:firefox": "npm run postbuild", "postbuild:chromium": "npm run postbuild && npm run uninject-browser-polyfill", "postinstall": "npm run copy-browser-polyfill", - "preversion": "npm run lint && npm test && npm run update-changelog", - "version": "npm run copy-version && npm run update-changelog && git add -u", + "preversion": "npm run lint && npm test", + "version": "npm run copy-version && npm run update-changelog && git add CHANGELOG.md src/manifest.json", "postversion": "npm run build:firefox", "prepare": "husky install", "commit": "git-cz"