How to use the @geut/chan-core.addRelease function in @geut/chan-core

To help you get started, we’ve selected a few @geut/chan-core 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 geut / chan / packages / chan / cmds / release.js View on Github external
if (git && !gitTemplate) {
      if (gitParsed) {
        gitTemplate = gitParsed.template;
        gitBranch = gitBranch || gitParsed.branch;
      } else {
        file.message(`Missing url to compare releases.`);
      }
    }

    if (!gitBranch) {
      // default to
      gitBranch = 'HEAD';
    }

    await addRelease(file, {
      version,
      yanked,
      gitTemplate,
      gitBranch,
      allowYanked,
      allowPrerelease,
      mergePrerelease
    });

    await write({ file, stdout });

    if (git && ghrelease) {
      if (!gitParsed) {
        file.message(`Cannot create a Github Release without the git url.`);
      }
      await createGithubRelease({ file, version, success, info, warn, error, gitParsed });

@geut/chan-core

API and transformers to work with chast

ISC
Latest version published 2 years ago

Package Health Score

46 / 100
Full package analysis

Popular @geut/chan-core functions

Similar packages