-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.config.js
33 lines (31 loc) · 970 Bytes
/
release.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module.exports={
plugins: [
["@semantic-release/commit-analyzer", {
releaseRules: [
{"type": "major" , "release": "major"},
{"type": "release", "release": "major"},
],
parserOpts: {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
}
}],
["@semantic-release/exec",{
prepareCmd: `
set -e
VER=\${nextRelease.version}
##vso[build.updatebuildnumber]\${nextRelease.version}
dotnet pack "src/$PROJECT_DIR/"*.csproj -o "$STAGING_PATH" -p:Configuration=Release -p:PackageVersion=$VER --verbosity Detailed
`,
successCmd: `
set -e
echo "##vso[task.setvariable variable=newVer;]yes"
`,
}],
"@semantic-release/git"
],
branches: [
'master',
{name: 'beta', channel: 'beta', prerelease: true},
{name: 'preview', channel: 'beta', prerelease: true}
],
}