How to use gh-release - 1 common examples

To help you get started, we’ve selected a few gh-release 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 miscord / miscord / src / bin / build.ts View on Github external
console.log(`Building miscord-${version}-win32.exe...`)
  await build('win-x86', 'win32.exe')

  console.log(`Building miscord-${version}-linux.bin...`)
  await build('linux-x64', 'linux.bin')

  console.log(`Building miscord-${version}-linux32.bin...`)
  await build('linux-x86', 'linux32.bin')

  console.log(`Building miscord-${version}-mac.bin...`)
  await build('mac-x64', 'mac.bin')

  console.log(`Building miscord-${version}-mac.zip...`)
  await buildMacApp(version)

  release({
    auth: {
      token: process.env.GITHUB_TOKEN!!
    },
    owner: 'miscord',
    repo: 'miscord',
    tag_name: 'v' + version,
    target_commitish: 'master',
    name: version,
    assets: [
      'win',
      'win32',
      'linux',
      'linux32',
      'mac',
      'macapp'
    ].map(platform => `build/miscord-${version}-${platform}.zip`)

gh-release

Create a GitHub Release for a Node package

ISC
Latest version published 2 years ago

Package Health Score

51 / 100
Full package analysis

Popular gh-release functions