Skip to content

Commit

Permalink
fix: config.github might be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
sylc committed Jun 12, 2022
1 parent 302965e commit 266d13e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/github/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ReleaseError } from "../../src/error.ts";
const GITHUB_TOKEN = "GITHUB_TOKEN";

interface GithubConfig {
github: {
github?: {
/**
* Perform a release. Can also be set to 'draft' to perform a draft release.
* The default is true
Expand Down Expand Up @@ -62,7 +62,7 @@ const plugin: ReleasePlugin<GithubConfig> = {
name: `v${to}`,
body: render(doc),
prerelease: releaseType.startsWith("pre"),
draft: config.github.release === "draft",
draft: config.github?.release === "draft",
});
if (!result.ok) throw new ReleaseError("PLUGIN", result.err);
} else {
Expand Down

0 comments on commit 266d13e

Please sign in to comment.