()
| 53 | }; |
| 54 | |
| 55 | const checkUncommittedChanges = () => { |
| 56 | try { |
| 57 | const uncommittedFiles = execSync('git status --porcelain') |
| 58 | .toString() |
| 59 | .trim(); |
| 60 | if (uncommittedFiles) { |
| 61 | throw new Error('Uncommitted changes detected'); |
| 62 | } |
| 63 | console.log('✅ No uncommitted changes'); |
| 64 | } catch (error) { |
| 65 | exit('Uncommitted changes', error); |
| 66 | } |
| 67 | }; |
| 68 | |
| 69 | const getNextVersion = (version: string, type: ReleaseType): string => { |
| 70 | const nextVersion = semver.inc(version, type); |