This commit is contained in:
Nukeap committed 2025-02-06 10:16:37 +03:00
1 parent 3f23f4305b
commit 78c43e7c71
5 files changed
+93 -143

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import { execSync } from 'child_process';
const commitMessage = process.argv[2];
console.log(process.argv);
if (commitMessage) {
// Проверяем, содержит ли сообщение коммита определенные ключевые слова
const isPatch = /^(fix|chore)/.test(commitMessage); // Например, если тип "fix" или "chore"
if (isPatch) {
console.log('Обновление версии патча...');
execSync('cd src/front && npm version patch', { stdio: 'inherit' });
}
}