Nullifying Precipitation Machine

    changesets-github-release

    0.1.0 • Public • Published

    changesets-github-release

    Automatize publishing GitHub releases after every changesets publish

    Installation

    pnpm add -D changesets-github-release

    or

    yarn add -D changesets-github-release

    or

    npm install -D changesets-github-release

    Usage

    First it assumes the presence of the GITHUB_TOKEN environment variable (you also can create a local .env in the same folder of the package including it).

    In your package.json add a postpublish scripts as it follows:

    {
      "repository": {
        "type": "git",
        "url": "https://github.com/repo-owner/repo-name"
      },
      "scripts": {
        "postpublish": "gh-release"
      }
    }

    You also can specify the target GitHub repository using the "--repo" argument:

    {
      "scripts": {
        "postpublish": "gh-release --repo repo-owner/repo-name"
      }
    }

    You also can specify the target GitHub repository using the GITHUB_REPO environment variable

    .env

    GITHUB_TOKEN=XXXXXX
    GITHUB_REPO=repo-owner/repo-name
    {
      "scripts": {
        "postpublish": "gh-release"
      }
    }

    Keywords

    Install

    npm i changesets-github-release

    DownloadsWeekly Downloads

    1,726

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    1.15 MB

    Total Files

    4

    Last publish

    Collaborators

    • pablosz