Skip to content

Commit c827c19

Browse files
claudedgellow
authored andcommitted
fix: use GitHub API for tag creation instead of git CLI
1 parent b8a6724 commit c827c19

1 file changed

Lines changed: 3 additions & 17 deletions

File tree

src/core/release.ts

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -253,23 +253,9 @@ export class ReleaseManager {
253253
release.sha = new TextDecoder().decode(amendedShaResult.stdout).trim();
254254
}
255255

256-
// Create git tag locally (on the new commit)
257-
const tagCommand = new Deno.Command('git', {
258-
args: ['tag', '-a', tag, '-m', `Release ${tag}`],
259-
});
260-
const { code, stderr } = await tagCommand.output();
261-
262-
if (code !== 0) {
263-
const error = new TextDecoder().decode(stderr);
264-
throw new PlsError(
265-
`Failed to create git tag: ${error}`,
266-
'GIT_TAG_ERROR',
267-
);
268-
}
269-
270-
// Push commits and tag to remote
256+
// Push commit to remote (tag will be created by storage.saveRelease via API)
271257
const pushCommand = new Deno.Command('git', {
272-
args: ['push', 'origin', 'HEAD', '--follow-tags'],
258+
args: ['push', 'origin', 'HEAD'],
273259
});
274260
const pushResult = await pushCommand.output();
275261

@@ -278,7 +264,7 @@ export class ReleaseManager {
278264
console.warn(`Warning: Failed to push to remote: ${error}`);
279265
}
280266

281-
// Save release to storage
267+
// Save release to storage (creates GitHub release + tag via API)
282268
await this.storage.saveRelease(release);
283269

284270
// Update CHANGELOG.md

0 commit comments

Comments
 (0)