From be998ad017978ba72f52ea252c261ee6e379dd89 Mon Sep 17 00:00:00 2001 From: Dan Hensby Date: Wed, 15 Apr 2026 00:16:56 +0200 Subject: [PATCH] ci: include built files in release commit The npm version lifecycle hook rebuilds the project and stages the output so that the semantic-release git commit includes up-to-date built files (lib/main/index.js, README.md). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7d8ea12..edfd9f8 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "lint:fix": "npm run lint -- --fix", "prepare": "npm run build", "test": "mocha -r ts-node/register './test/**/**.ts'", - "test:coverage": "nyc --all npm run test --silent" + "test:coverage": "nyc --all npm run test --silent", + "version": "npm run build && git add README.md lib/" }, "files": [ "action.yml",