@scaleleap/semantic-release-config
Version:
Semantic Release Shareable Configuration
55 lines (54 loc) • 1.58 kB
JavaScript
// https://semantic-release.gitbook.io/semantic-release/extending/plugins-list
Object.defineProperty(exports, "__esModule", { value: true });
const TARBALL_DIRECTORY = 'pack';
const plugins = [
// https://github.com/semantic-release/commit-analyzer
'@semantic-release/commit-analyzer',
// https://github.com/semantic-release/release-notes-generator
'@semantic-release/release-notes-generator',
// https://github.com/semantic-release/changelog
[
'@semantic-release/changelog',
{
changelogTitle: `
# Changelog
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
`.trim(),
},
],
// https://github.com/semantic-release/npm
[
'@semantic-release/npm',
{
tarballDir: TARBALL_DIRECTORY,
},
],
// https://github.com/semantic-release/github
[
'@semantic-release/github',
{
assets: `${TARBALL_DIRECTORY}/*.tgz`,
},
],
// https://github.com/semantic-release/git
'@semantic-release/git',
];
if (process.env.SLACK_WEBHOOK) {
plugins.push([
// https://github.com/juliuscc/semantic-release-slack-bot/
'semantic-release-slack-bot',
{
notifyOnSuccess: true,
notifyOnFail: true,
markdownReleaseNotes: true,
},
]);
}
const config = {
plugins,
};
exports.default = config;
module.exports = config;
//# sourceMappingURL=index.js.map
;