chore [P-137]: коммит ноды
This commit is contained in:
1 parent
c56f924da9
commit
b36816cd74
3 files changed
+17
-2
No files matched your search
+12
@@ -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' });
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user