Compare commits

..

1 Commits

Author SHA1 Message Date
Nick Genovese
e294131f98 fix: now pushes the tag whenever not rc 2024-12-06 13:33:08 -05:00
2 changed files with 6 additions and 60 deletions

View File

@@ -2,6 +2,11 @@ name: Branch Build Using Docker
on:
push:
branches:
- feature-2.0.0/*
- hotfix-2.0.0/*
- release-2.0.0/*
- development-2.0.0
env:
# solution path doesn't need slashes unless there it is multiple folders deep
@@ -29,8 +34,6 @@ jobs:
$phase = ""
$newVersionString = ""
Write-Host "Current GitHub Ref: $Env:GITHUB_REF"
switch -regex ($Env:GITHUB_REF) {
'^refs\/pull\/*.' {
$phase = 'beta';
@@ -55,10 +58,7 @@ jobs:
$newVersionString = "{0}-{1}-{2}" -f $newVersion, $phase, $Env:GITHUB_RUN_NUMBER
}
}
Write-Host "Version to be used: $newVersionString"
Write-Host "Build Phase: $phase"
echo "version=$newVersionString" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
- name: Setup MS Build
uses: microsoft/setup-msbuild@v1.1

View File

@@ -1,54 +0,0 @@
{
"branches": [
{
"name": "development-2.0.0",
"prerelease": true
},
{
"name": "feature-2.0.0/*",
"prerelease": "beta"
},
{
"name": "hotfix-2.0.0/*",
"prerelease": "patch"
},
{
"name": "release-2.0.0/*",
"prerelease": "rc"
}
],
"plugins": [
"@semantic-release/commit-analyzer",
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{ "type": "feat", "section": "🚀 Features" },
{ "type": "fix", "section": "🐛 Bug Fixes" },
{ "type": "chore", "section": "🧹 Maintenance" },
{ "type": "docs", "section": "📚 Documentation" },
{ "type": "style", "section": "💎 Code Style" },
{ "type": "refactor", "section": "🔨 Refactoring" },
{ "type": "perf", "section": "⚡ Performance Improvements" },
{ "type": "test", "section": "✅ Tests" }
]
}
}
],
[
"@semantic-release/changelog",
{
"changelogTitle": "# 📦 Release History\n\nAll notable changes to this project will be documented in this file."
}
],
[
"@semantic-release/exec",
{
"verifyReleaseCmd": "echo \"newVersion=true\" >> $GITHUB_OUTPUT",
"publishCmd": "echo \"version=${nextRelease.version}\" >> $GITHUB_OUTPUT && echo \"tag=${nextRelease.gitTag}\" >> $GITHUB_OUTPUT && echo \"type=${nextRelease.type}\" >> $GITHUB_OUTPUT && echo \"channel=${nextRelease.channel}\" >> $GITHUB_OUTPUT"
}
]
]
}