awad
This commit is contained in:
1 parent
3f23f4305b
commit
78c43e7c71
5 files changed
+93
-143
No files matched your search
+14
@@ -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' });
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user