Skip to main content
Version: Next

Releasers

Releaser plugins run after publishers during the version command. Use them to create a release entry on a platform such as GitHub.

Built-in Releasers

PluginDescription
createGitHubReleaserCreate a GitHub Release

Custom Releasers

You can write your own releaser by implementing the ReleaserPlugin type:

import type { ReleaserPlugin } from "cngpac";

const myReleaser: ReleaserPlugin = async ({ versionBump, changelog, tagName, config }) => {
// ...release logic...
};

A releaser receives:

PropertyTypeDescription
versionBumpVersionBumpVersion bump information
changelogstringThe generated changelog markdown
tagNamestringThe git tag name
configCngpacConfigThe full Cngpac config

Register it in your config:

export default defineConfig({
// ...
releasers: [myReleaser],
});