Détail du package

simple-github-release

TrigenSoftware9.2kMIT2.0.1

A simple tool to create GitHub releases.

github, release

readme

simple-github-release

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

A simple tool to create GitHub releases. It reads the latest notes from changelog and creates a release on the GitHub repository with them.

Usage

  1. Install
# pnpm
pnpm add -D simple-github-release
# yarn
yarn add -D simple-github-release
# npm
npm i -D simple-github-release
  1. Add script to package.json
{
  "scripts": {
    "release": "simple-github-release"
  }
}
  1. Configure it in package.json
{
  "simple-github-release": {
    "releaseName": "Release ${version}"
  }
}

or create .simple-github-release.js or .simple-github-release.json file

export default {
  releaseName: 'Release ${version}'
}

or just add options to script

{
  "scripts": {
    "release": "simple-github-release --ci"
  }
}
  1. Create a personal access token and make sure the token is available as an environment variable. Or use browser option to create release manually. GitHub will be opened in browser with pre-populated fields.

  2. Now you can run it!

pnpm release

Options

Options Description Default
titleRegExp Regular expression to find release title in changelog. Must contain capture group, which will be used to detect release version. As fallback, version will read from package.json. not required
includeTitle Include release title into release notes. false
remoteUrl GitHub repository remote url. From local environment.
host Custom API host. 'github.com'
changelogLocation Path to read changelog file. 'CHANGELOG.md'
releaseName Release name to create. You are able to use some placeholders: ${tag} - latest git tag name, as fallback will used 'v${version}'; ${version} - version. '${tag}'
draft Create release draft. false
prerelease Create pre-release. false
auto Create release with automatically generated notes. Changelog file will be ignored. false
browser Create link to create release in browser. !process.env.GITHUB_TOKEN
ci Do not trigger user interactions. false

Why?

Quick comparison with other tools:

Also, all these tools generate release notes from commits, simple-github-release reads notes from an already existing changelog file. For example, you can use standard-version to bump version and generate changelog, and then use simple-github-release to create release on GitHub.

changelog

Changelog

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.2.1 (2025-06-27)

Bug Fixes

  • core: options object is optional for PackageJsonProject (0a18fd1)

2.2.0 (2025-06-09)

Features

  • core: fetch option for tag step to update local tags before tagging (e3137e4)

Bug Fixes

  • github-action: fetch fresh tags from remote before tagging (c3a9c9e)

2.1.2 (2025-06-08)

Bug Fixes

  • config: fix esmodule config loading (2cb04f4)

2.1.1 (2025-06-08)

Bug Fixes

  • config: fix json config loading (01ec0d6)

2.1.0 (2025-06-08)

Features

  • config: addon queries feature (8fffed4)

Bug Fixes

  • core: bump fixed monorepo using root version as base (fc3a73f)

2.0.3 (2025-06-07)

Bug Fixes

  • core: extract correct version from changelog (4486435)

2.0.2 (2025-06-07)

Bug Fixes

  • core: load preset with local import function (0bc9e62)

2.0.1 (2025-06-07)

Bug Fixes

  • core,github-action: consistent type imports (9253aff)
  • core,simple-github-release: package build fix (73817a5)

2.0.0 (2025-06-05)

⚠ BREAKING CHANGES

  • simple-github-release: Now node 18 is minimal required version

Features

  • config: a simple-release config loader (97965d2)
  • core: a simple tool to release projects with monorepo support (d695be5)
  • github-action: a simple-release api for github action (#95) (6842da1)
  • github-release: a github release addon for simple-release (e648f45)
  • github: a github addon for simple-release (71430be)
  • npm: a npm addon for simple-release (5cc6e7a)
  • pnpm: a pnpm addon for simple-release (17606de)
  • simple-github-release: add tag cli option (9cf268f)
  • simple-github-release: drop git-url-parse dependency in favor of @simple-libs/hosted-git-info (f022984)
  • simple-github-release: upgrade node minimal version to 18 (#82) (c248fba)

Bug Fixes

  • badge url in readme (2ac1202)
  • deps: update dependency @octokit/rest to v19 (#24) (bd8ee16)
  • deps: update dependency @octokit/rest to v20 (#43) (a71db82)
  • deps: update dependency git-url-parse to v13 (#31) (0dcfdc4)
  • deps: update dependency lilconfig to v3 (#60) (b475e8f)
  • deps: update dependency open to v10 (#66) (d14c94b)
  • deps: update dependency open to v9 (#37) (fe212fb)