UNPKG

semantic-release-yarn

Version:

semantic-release plugin to publish a npm package with yarn

11 lines (10 loc) 426 B
import { isDefaultRegistry } from "./definitions/constants.js"; export function getReleaseInfo({ name }, { mainWorkspace }, { nextRelease: { version }, }, distTag, registry) { return { name: `npm package (@${distTag} dist-tag)`, url: isDefaultRegistry(registry) ? `https://www.npmjs.com/package/${mainWorkspace ?? name}/v/${version}` : undefined, channel: distTag, }; }