Skip to content

Latest commit

 

History

History

release

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

garden github-release

Create a GitHub release.

Usage

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);
})();

Arguments

  • 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 by githubToken.

Command

garden github-release \
       [--tag <tag>] \
       [--published] \
       [--path <path>] \
       [--token <token>] \
       <markdown>