Skip to content

Commit be998ad

Browse files
dhensbyCopilot
andcommitted
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 <[email protected]>
1 parent aac168c commit be998ad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"lint:fix": "npm run lint -- --fix",
1212
"prepare": "npm run build",
1313
"test": "mocha -r ts-node/register './test/**/**.ts'",
14-
"test:coverage": "nyc --all npm run test --silent"
14+
"test:coverage": "nyc --all npm run test --silent",
15+
"version": "npm run build && git add README.md lib/"
1516
},
1617
"files": [
1718
"action.yml",

0 commit comments

Comments
 (0)