@halospv3/hce.shared-config
Version:
Automate commit message quality, changelogs, and CI/CD releases. Exports a semantic-release shareable configuration deserialized from this package's '.releaserc.yml'. Shared resources for .NET projects are also distributed with this package.
34 lines (30 loc) • 1.6 kB
JavaScript
;
const setupGitPluginSpec = require('./setupGitPluginSpec.cjs');
const defaultPlugins = ['@semantic-release/commit-analyzer', '@semantic-release/release-notes-generator', '@semantic-release/npm', '@semantic-release/github'];
const baseConfig = {
/** @see https://semantic-release.gitbook.io/semantic-release/usage/plugins#plugin-options-configuration */
preset: 'conventionalcommits',
branches: ['main', {
name: 'develop',
channel: 'develop',
prerelease: true
}],
plugins: [["@semantic-release/commit-analyzer", {}], ["semantic-release-export-data", {}], ["@semantic-release/release-notes-generator", {}], ["@semantic-release/changelog", {}], ["@semantic-release/git", setupGitPluginSpec.DefaultOptions],
// Arbitrary shell commands - https://github.com/semantic-release/exec
// hint: set 'prepareCmd' to`dotnet publish`.
// Because this is sorted after @semantic-release / git, the new Git tag will
// be visible to dotnet(and GitVersion).Dotnet artifacts will be
// versioned accordingly.
// Plugins' Steps: https://github.com/semantic-release/semantic-release/blob/master/docs/extending/plugins-list.md
["@semantic-release/exec", {}], ["@semantic-release/github", {
assets: [{
path: './publish/*'
}]
}]]
};
/// (OPTIONAL) update static Version strings before Git plugin
// https://github.com/jpoehnelt/semantic-release-replace-plugin
// https://github.com/droidsolutions/semantic-release-update-file
exports.baseConfig = baseConfig;
exports.defaultPlugins = defaultPlugins;
//# sourceMappingURL=semanticReleaseConfig.cjs.map