2.0.0 • Published 10 days ago

@simple-release/github v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 days ago

@simple-release/github

ESM-only package NPM version Node version Dependencies status Install size Build status Coverage status

A github addon for simple-release.

Install

# pnpm
pnpm add @simple-release/github
# yarn
yarn add @simple-release/github
# npm
npm i @simple-release/github

Usage

import { Releaser } from '@simple-release/core'
import { PnpmProject } from '@simple-release/pnpm'
import { GithubHosting } from '@simple-release/github'

await new Releaser({
  project: new PnpmProject(),
  hosting: new GithubHosting({
    token: process.env.GITHUB_TOKEN
  })
})
  .bump()
  .commit()
  .tag()
  .push()
  .publish()
  .release()
  .run()

Options

OptionDescription
tokenGitHub personal access token to authenticate with the GitHub API.
octokitAlternative to token, you can provide an instance of GitHub's Octokit client.
ownerThe GitHub owner (username or organization) of the repository. If not provided, it will be inferred from the remote URL.
projectThe GitHub project (repository name) to create releases in. If not provided, it will be inferred from the remote URL.