1.5.3 • Published 11 months ago

semantic-release-config-gitmoji v1.5.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

semantic-release-config-gitmoji

NPM version NPM downloads

shareable semantic-release configuration for gitmoji commit style

How to use

Basic Usage

// .releaserc.js
module.exports = {
  extends: ['semantic-release-config-gitmoji'],
};

Create your config

use this in monorepo

// .releaserc.js
const { createConfig } = require('semantic-release-config-gitmoji/lib/createConfig');

const config = createConfig({ monorepo: true });

module.exports = config;

createConfig params

Common Options

nametypeoptionaldefaultdescription
releaseRulesReleaseRule[]truen/a
changelogTitlestringtrue# Changelog
changelogFilestringtrueCHANGELOG.md

Git Params

nametypeoptionaldefaultdescription
messagestringtrue:bookmark: chore(release): ${nextRelease.gitTag} [skip ci]\n\n${nextRelease.notes}The message for the release commit. See message.
gitAssetsfalsestring[]['CHANGELOG.md', 'package.json']Files to include in the release commit.Set to false to disable adding files to the release commit. See assets.

Github Params

nametypeoptionaldefaultdescription
enableGithubbooleantruetrue开启 github 插件

NPM Params

nametypeoptionaldefaultdescription
enableNPMbooleantruetrue开启 npm 插件
npmPublishbooleantruen/aWhether to publish the npm package to the registry. If false the package.json version will still be updated. false if the package.json private property is true, true otherwise
pkgRootstringtruen/aDirectory path to publish. default: .
tarballDirstringfalsetruen/a
monorepobooleantruen/a如果是 Monorepo 仓库发布 npm 包,使用 "@semrel-extra/npm" 替代官方包 if using monorepo, use "@semrel-extra/npm" instead of the official package

GithubPluginOpts

nametypeoptionaldefaultdescription
githubUrlstringtrueGH_URL or GITHUB_URL environment variable.The GitHub Enterprise endpoint.
githubApiPathPrefixstringtrueGH_PREFIX or GITHUB_PREFIX environment variable.The GitHub Enterprise API prefix.
githubAssetsstring[]true-An array of files to upload to the release. See assets.
proxystringtrueHTTP_PROXY environment variable.The proxy to use to access the GitHub API. See proxy.
successCommentstringtrue:tada: This issue has been resolved in version ${nextRelease.version} :tada:The release is available on GitHub release The assignees to add to the issue created when a release fails.

License

MIT ® Arvin Xu