How to use release-please - 6 common examples

To help you get started, we’ve selected a few release-please examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github googleapis / repo-automation-bots / packages / release-please / src / release-please.ts View on Github external
packageName: string,
  repoUrl: string,
  github: GitHubAPI
) {
  const releaseOptions: GitHubReleaseOptions = {
    label: 'autorelease: pending',
    repoUrl,
    packageName,
    apiUrl: DEFAULT_API_URL,
    octokitAPIs: {
      octokit: github,
      graphql: github.graphql,
      request: github.request,
    },
  };
  const ghr = new GitHubRelease(releaseOptions);
  Runner.releaser(ghr);
}
github googleapis / repo-automation-bots / packages / release-please / src / release-please.ts View on Github external
const buildOptions: BuildOptions = {
    packageName,
    repoUrl,
    apiUrl: DEFAULT_API_URL,
    octokitAPIs: {
      octokit: github,
      graphql: github.graphql,
      request: github.request,
    },
    bumpMinorPreMajor,
  };
  if (releaseLabels) {
    buildOptions.label = releaseLabels.join(',');
  }

  Runner.runner(ReleasePRFactory.build(releaseType, buildOptions));
}
github googleapis / repo-automation-bots / packages / release-please / src / release-please.ts View on Github external
function releaseTypeFromRepoLanguage(language: string | null): ReleaseType {
  if (language == null) {
    throw Error('repository has no detected language');
  }
  switch (language.toLowerCase()) {
    case 'ruby':
      return ReleaseType.Ruby;
    case 'java':
      return ReleaseType.JavaYoshi;
    case 'typescript':
    case 'javascript':
      return ReleaseType.Node;
    case 'php':
      return ReleaseType.PHPYoshi;
    default:
      throw Error(`unknown release type: ${language}`);
  }
}
github googleapis / repo-automation-bots / packages / release-please / src / release-please.ts View on Github external
function releaseTypeFromRepoLanguage(language: string | null): ReleaseType {
  if (language == null) {
    throw Error('repository has no detected language');
  }
  switch (language.toLowerCase()) {
    case 'ruby':
      return ReleaseType.Ruby;
    case 'java':
      return ReleaseType.JavaYoshi;
    case 'typescript':
    case 'javascript':
      return ReleaseType.Node;
    case 'php':
      return ReleaseType.PHPYoshi;
    default:
      throw Error(`unknown release type: ${language}`);
  }
}
github googleapis / repo-automation-bots / packages / release-please / src / release-please.ts View on Github external
function releaseTypeFromRepoLanguage(language: string | null): ReleaseType {
  if (language == null) {
    throw Error('repository has no detected language');
  }
  switch (language.toLowerCase()) {
    case 'ruby':
      return ReleaseType.Ruby;
    case 'java':
      return ReleaseType.JavaYoshi;
    case 'typescript':
    case 'javascript':
      return ReleaseType.Node;
    case 'php':
      return ReleaseType.PHPYoshi;
    default:
      throw Error(`unknown release type: ${language}`);
  }
}
github googleapis / repo-automation-bots / packages / release-please / src / release-please.ts View on Github external
function releaseTypeFromRepoLanguage(language: string | null): ReleaseType {
  if (language == null) {
    throw Error('repository has no detected language');
  }
  switch (language.toLowerCase()) {
    case 'ruby':
      return ReleaseType.Ruby;
    case 'java':
      return ReleaseType.JavaYoshi;
    case 'typescript':
    case 'javascript':
      return ReleaseType.Node;
    case 'php':
      return ReleaseType.PHPYoshi;
    default:
      throw Error(`unknown release type: ${language}`);
  }
}