Skip to content

Commit 4b3bbf9

Browse files
committed
chore(release): bump version to 0.3.0 and update changelog
1 parent 6300658 commit 4b3bbf9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/agents/release.agent.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,19 +639,21 @@ async function run() {
639639
console.log(`[DRY-RUN] Would create branch ${releaseBranch}`);
640640
}
641641

642+
642643
// Step 3: Bump version
643644
bumpVersion(nextVersion, { dryRun });
644645

645646
// Step 4: Update changelog
646647
updateChangelog(nextVersion, { dryRun });
647648

648-
// Step 5: Commit changes
649+
// Step 5: Stage all changes and run Husky pre-commit hooks, then commit
649650
if (!dryRun) {
650-
exec("git add VERSION CHANGELOG.md");
651+
exec("git add .");
652+
exec("npx husky run pre-commit");
651653
exec(`git commit -m "chore(release): bump version to ${nextVersion}"`);
652654
} else {
653655
console.log(
654-
`\n[DRY-RUN] Would commit VERSION and CHANGELOG.md with message: "chore(release): bump version to ${nextVersion}"`,
656+
`\n[DRY-RUN] Would stage all changes, run Husky pre-commit hooks, and commit with message: "chore(release): bump version to ${nextVersion}"`,
655657
);
656658
}
657659

0 commit comments

Comments
 (0)