Skip to content

Commit

Permalink
patch: update versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasteles committed Feb 24, 2025
1 parent 2e388d9 commit a4f5aa8
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 45 deletions.
57 changes: 25 additions & 32 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-reportgenerator-globaltool": {
"version": "5.4.4",
"commands": [
"reportgenerator"
],
"rollForward": false
},
"nuke.globaltool": {
"version": "9.0.4",
"commands": [
"nuke"
],
"rollForward": false
},
"docfx": {
"version": "2.78.3",
"commands": [
"docfx"
],
"rollForward": false
},
"gitversion.tool": {
"version": "6.1.0",
"commands": [
"dotnet-gitversion"
],
"rollForward": false
"version": 1,
"isRoot": true,
"tools": {
"dotnet-reportgenerator-globaltool": {
"version": "5.4.4",
"commands": [
"reportgenerator"
],
"rollForward": false
},
"nuke.globaltool": {
"version": "9.0.4",
"commands": [
"nuke"
],
"rollForward": false
},
"docfx": {
"version": "2.78.3",
"commands": [
"docfx"
],
"rollForward": false
}
}
}
}
}
18 changes: 11 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
GITHUB_ACTIONS: true
NUGET_TAG: -preview

jobs:
build:
Expand All @@ -39,13 +40,15 @@ jobs:
global-json-file: global.json

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v1.1.1
uses: gittools/actions/gitversion/setup@v3.1.11
with:
versionSpec: 5.x
versionSpec: 6.0.x

- name: Determine Version
uses: gittools/actions/gitversion/execute@v1.1.1
uses: gittools/actions/gitversion/execute@v3.1.11
id: gitversion
with:
useConfigFile: true

- name: Tool Restore
run: dotnet tool restore
Expand All @@ -54,9 +57,10 @@ jobs:
run: dotnet nuke test
- name: Build and Pack NuGet package
run: |
dotnet pack src/Backdash --configuration Release --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}' --output ./build_artifacts
dotnet pack src/Backdash.Utils --configuration Release --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}' --output ./build_artifacts
dotnet pack src/Backdash.Analyzers --configuration Release --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}' --output ./build_artifacts
SEMVER="${{ steps.gitversion.outputs.SemVer }}${{ env.NUGET_TAG }}"
dotnet pack src/Backdash --configuration Release --include-symbols -p:Version="$SEMVER" --output ./build_artifacts
dotnet pack src/Backdash.Utils --configuration Release --include-symbols -p:Version="$SEMVER" --output ./build_artifacts
dotnet pack src/Backdash.Analyzers --configuration Release --include-symbols -p:Version="$SEMVER" --output ./build_artifacts
- name: Upload lib NuGet package artifact to GitHub
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -102,7 +106,7 @@ jobs:
uses: ncipollo/release-action@v1
with:
tag: ${{ needs.build.outputs.Version }}
prerelease: ${{ needs.build.outputs.PreReleaseTag }}
prerelease: true
name: Release ${{ needs.build.outputs.Version }}
artifacts: "build_artifacts/*"
token: ${{ secrets.GITHUB_TOKEN }}
11 changes: 6 additions & 5 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
next-version: 0.5.2
mode: ContinuousDelivery
continuous-delivery-fallback-tag: ""
workflow: GitFlow/v1
mode: ContinuousDeployment
next-version: 0.5.3

major-version-bump-message: "^(breaking|major):"
minor-version-bump-message: "^(feature|minor):"
patch-version-bump-message: "^(fix|patch):"
no-bump-message: "^(none|skip):"

branches:
main:
regex: ^master$|^main$
tag: beta
is-mainline: true
is-main-branch: true
source-branches: [ ]
2 changes: 1 addition & 1 deletion tests/Backdash.Tests/Backdash.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<NoWarn>CS1591;NU1903</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Bogus" Version="35.6.1" />
<PackageReference Include="Bogus" Version="35.6.2" />
<PackageReference Include="FakeItEasy" Version="8.3.0"/>
<PackageReference Include="FakeItEasy.AutoFakeIt" Version="2.0.0"/>
<PackageReference Include="FluentAssertions" Version="[7.1.0]"/>
Expand Down

0 comments on commit a4f5aa8

Please sign in to comment.