Skip to content

Commit

Permalink
fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
volatile-static committed Jun 13, 2024
1 parent fc3bf56 commit 55dcf84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ main();
async function main() {
const config = await loadConfig(false, true),
releaser = new Release(config);
await releaser.run();
// await releaser.run();
if (!process.env.GITHUB_ACTIONS) return;

const changelog = await releaser.getChangelog(),
Expand All @@ -31,7 +31,7 @@ async function main() {

async function rewriteRelease(tag: string, name: string, body: string, prerelease = false) {
const old = await client.repositories.getV5ReposOwnerRepoReleasesTagsTag({ owner, repo, tag });
if (old.id)
if (old?.id)
return client.repositories.patchV5ReposOwnerRepoReleasesId({
owner,
repo,
Expand Down

0 comments on commit 55dcf84

Please sign in to comment.