Create a GitHub release.
import { githubRelease } from '@zendeskgarden/scripts';
const args: {
tag: string;
body: string;
published?: boolean;
path?: string;
token?: string;
} = {
tag: 'test',
body: '# Release\n\ncontent...'
/* optional overrides */
};
(async () => {
const url = await githubRelease(args);
console.log(url);
})();
markdown
markdown content.tag
tag name.published
determine whether this is a published or draft release; defaults to draft.path
optional path to a git directory; defaults to the current directory.token
optional GitHub personal access token; defaults to the value provided bygithubToken
.
garden github-release \
[--tag <tag>] \
[--published] \
[--path <path>] \
[--token <token>] \
<markdown>