diff --git a/src/github.ts b/src/github.ts index 21265d6..4435876 100644 --- a/src/github.ts +++ b/src/github.ts @@ -34,6 +34,12 @@ export interface Releaser { tag: string; }): Promise<{ data: Release }>; + deleteTag(params: { + owner: string; + repo: string; + ref: string; + }): void; + createRelease(params: { owner: string; repo: string; @@ -79,6 +85,14 @@ export class GitHubReleaser implements Releaser { return this.github.rest.repos.getReleaseByTag(params); } + deleteTag(params: { + owner: string; + repo: string; + ref: string; + }): void { + return this.github.rest.git.deleteRef(params); + } + createRelease(params: { owner: string; repo: string;