chore [P-137]: коммит ноды

This commit is contained in:
Nukeap committed 2025-02-06 08:51:38 +03:00
1 parent c56f924da9
commit b36816cd74
3 files changed
+17 -2

No files matched your search

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