(tagStr: string, cwd: string)
| 287 | } |
| 288 | |
| 289 | export async function tagExists(tagStr: string, cwd: string) { |
| 290 | const gitCmd = await spawn("git", ["tag", "-l", tagStr], { cwd }); |
| 291 | const output = gitCmd.stdout.toString().trim(); |
| 292 | const tagExists = !!output; |
| 293 | return tagExists; |
| 294 | } |
| 295 | |
| 296 | export async function getCurrentCommitId({ |
| 297 | cwd, |