semantic-release-presets
Version:
Semantic release presets and plugins for various projects.
73 lines (72 loc) • 2 kB
JSON
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/gitlab",
[
"semantic-release-replace-plugin",
{
"replacements": [
{
"files": [
"**/*.csproj"
],
"from": "<AssemblyVersion>[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}</AssemblyVersion>",
"to": "<AssemblyVersion>${nextRelease.version}</AssemblyVersion>"
},
{
"files": [
"**/*.csproj"
],
"from": "<FileVersion>[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}</FileVersion>",
"to": "<FileVersion>${nextRelease.version}</FileVersion>"
},
{
"files": [
"**/*.csproj",
".nuspec"
],
"from": "<[vV]{1}ersion>[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}</[vV]{1}ersion>",
"to": "<Version>${nextRelease.version}</Version>"
}
]
}
],
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/git",
{
"assets": [
"package.json",
"package-lock.json",
"CHANGELOG.md",
".nuspec",
"**/*.csproj"
],
"message": "chore(release): :bookmark: ${nextRelease.version}\n\n${nextRelease.notes}"
}
],
"semantic-release-presets/plugins/ms-teams",
[
"semantic-release-presets/plugins/nuget",
{
"apiKey": "${env.CI_JOB_TOKEN}",
"configuration": "Release",
"password": "${env.CI_JOB_TOKEN}",
"source": "gitlab",
"url": "${env.CI_SERVER_URL}/api/v4/projects/${env.CI_PROJECT_ID}/packages/nuget/index.json",
"username": "gitlab-ci-token"
}
]
],
"tagFormat": "${version}"
}