npm / gh-release
gh-release
What changed in gh-release 2 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
12 breaking5 new APIs and options3 behavior and defaults3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initgh-release 810 changes
Breaking changes 5
Authentication is token-only; interactive ghauth login, its OAuth app, and username/password HTTP basic auth are removed.
The package is ESM-only. Import the named ghRelease export; on Node 22.12+, CommonJS require returns a module namespace rather than the function.
The minimum supported Node.js version is now 22.12.0.
The publish confirmation now defaults to yes; pressing Enter or answering anything other than n/no publishes the release.
The Release.clientId static is removed.
New APIs and options 2
Adds the --tag-prefix option to gh-release.
Changelog parsing supports Keep a Changelog, Conventional Changelog, Release Please, Standard Version, and auto-changelog formats.
Behavior and default changes 2
The release body is no longer required; an empty matching changelog section produces an empty-body release, and generate-notes options can populate the body without changelog notes.
A changelog is no longer required; without one, gh-release tags from the package.json version and creates a release with an empty body.
Fixes and other changes 1
Handles 422 commitish responses.
gh-release 71 changes
Breaking changes 1
Support for Node 12 is dropped because it is EOL.
gh-release 61 changes
Breaking changes 1
Node 10 is no longer supported because it is EOL.
gh-release 51 changes
Fixes and other changes 1
A new underlying request library is used to fix an edge case where releases would time out.
gh-release 46 changes
Breaking changes 3
The flag only works on GitHub Enterprise now.
Support for GitHub basic password authentication is removed; GitHub Enterprise still uses basic auth.
Updated dependencies require a newer Node.js version; run LTS or Latest.
New APIs and options 2
Passing an asset object is now supported, as gh-release-assets supports it.
Adds support for GitHub OAuth device flow and OAuth tokens.
Fixes and other changes 1
Error handling is improved.
gh-release 32 changes
Breaking changes 1
Getting defaults in the Node API now uses the same method as the CLI.
Behavior and default changes 1
Asset filenames can now contain spaces.
gh-release 22 changes
Breaking changes 1
The API no longer accepts auth as a separate parameter; provide it in options.auth instead.
New APIs and options 1
An assets option is available for uploading assets.