chore [P-137]: test
This commit is contained in:
1 parent
476a4679b0
commit
24b4a76cf6
3 files changed
+9
-15
No files matched your search
-14
@@ -1,14 +0,0 @@
|
||||
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