()
| 10 | import path from 'path'; |
| 11 | |
| 12 | function getPackageVersion() { |
| 13 | const packageJsonPath = path.resolve(process.cwd(), 'package.json'); |
| 14 | const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')); |
| 15 | return packageJson.version; |
| 16 | } |
| 17 | |
| 18 | function getShortSha() { |
| 19 | return execSync('git rev-parse --short HEAD').toString().trim(); |