-
Notifications
You must be signed in to change notification settings - Fork 0
Hooks & including files in builds
Vadim edited this page Feb 4, 2026
·
1 revision
You can run checks (e.g., lint) before bumping versions and add generated files to the release commit.
// package.json
"scripts": {
"release": "commit-and-tag-version --commit-all"
}-
--commit-allcommits staged and untracked files. - Combine with prerelease hook to include only needed generated files.
More on committing generated artifacts
// .versionrc.js
"scripts": {
"prerelease": "npm run lint && npm run build && git add dist/*"
}- Runs before version bump and commit.
- Ensures generated files are staged for the release commit.