Skip to content

Commit 7cac1c1

Browse files
committed
update versioning
1 parent 2e388d9 commit 7cac1c1

File tree

4 files changed

+40
-44
lines changed

4 files changed

+40
-44
lines changed

.config/dotnet-tools.json

Lines changed: 25 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
11
{
2-
"version": 1,
3-
"isRoot": true,
4-
"tools": {
5-
"dotnet-reportgenerator-globaltool": {
6-
"version": "5.4.4",
7-
"commands": [
8-
"reportgenerator"
9-
],
10-
"rollForward": false
11-
},
12-
"nuke.globaltool": {
13-
"version": "9.0.4",
14-
"commands": [
15-
"nuke"
16-
],
17-
"rollForward": false
18-
},
19-
"docfx": {
20-
"version": "2.78.3",
21-
"commands": [
22-
"docfx"
23-
],
24-
"rollForward": false
25-
},
26-
"gitversion.tool": {
27-
"version": "6.1.0",
28-
"commands": [
29-
"dotnet-gitversion"
30-
],
31-
"rollForward": false
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"dotnet-reportgenerator-globaltool": {
6+
"version": "5.4.4",
7+
"commands": [
8+
"reportgenerator"
9+
],
10+
"rollForward": false
11+
},
12+
"nuke.globaltool": {
13+
"version": "9.0.4",
14+
"commands": [
15+
"nuke"
16+
],
17+
"rollForward": false
18+
},
19+
"docfx": {
20+
"version": "2.78.3",
21+
"commands": [
22+
"docfx"
23+
],
24+
"rollForward": false
25+
}
3226
}
33-
}
34-
}
27+
}

.github/workflows/publish.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
1919
DOTNET_CLI_TELEMETRY_OPTOUT: true
2020
GITHUB_ACTIONS: true
21+
NUGET_TAG: -preview
2122

2223
jobs:
2324
build:
@@ -39,13 +40,15 @@ jobs:
3940
global-json-file: global.json
4041

4142
- name: Install GitVersion
42-
uses: gittools/actions/gitversion/setup@v1.1.1
43+
uses: gittools/actions/gitversion/setup@v3
4344
with:
44-
versionSpec: 5.x
45+
versionSpec: 6.0.x
4546

4647
- name: Determine Version
47-
uses: gittools/actions/gitversion/execute@v1.1.1
48+
uses: gittools/actions/gitversion/execute@v3
4849
id: gitversion
50+
with:
51+
useConfigFile: true
4952

5053
- name: Tool Restore
5154
run: dotnet tool restore
@@ -54,9 +57,10 @@ jobs:
5457
run: dotnet nuke test
5558
- name: Build and Pack NuGet package
5659
run: |
57-
dotnet pack src/Backdash --configuration Release --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}' --output ./build_artifacts
58-
dotnet pack src/Backdash.Utils --configuration Release --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}' --output ./build_artifacts
59-
dotnet pack src/Backdash.Analyzers --configuration Release --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}' --output ./build_artifacts
60+
SEMVER="${{ steps.gitversion.outputs.SemVer }}${{ env.NUGET_TAG }}"
61+
dotnet pack src/Backdash --configuration Release --include-symbols -p:Version="$SEMVER" --output ./build_artifacts
62+
dotnet pack src/Backdash.Utils --configuration Release --include-symbols -p:Version="$SEMVER" --output ./build_artifacts
63+
dotnet pack src/Backdash.Analyzers --configuration Release --include-symbols -p:Version="$SEMVER" --output ./build_artifacts
6064
6165
- name: Upload lib NuGet package artifact to GitHub
6266
uses: actions/upload-artifact@v4
@@ -102,7 +106,7 @@ jobs:
102106
uses: ncipollo/release-action@v1
103107
with:
104108
tag: ${{ needs.build.outputs.Version }}
105-
prerelease: ${{ needs.build.outputs.PreReleaseTag }}
109+
prerelease: true
106110
name: Release ${{ needs.build.outputs.Version }}
107111
artifacts: "build_artifacts/*"
108112
token: ${{ secrets.GITHUB_TOKEN }}

GitVersion.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
next-version: 0.5.2
2-
mode: ContinuousDelivery
1+
next-version: 0.5.3
2+
mode: ManualDeployment
33
continuous-delivery-fallback-tag: ""
44
major-version-bump-message: "^(breaking|major):"
55
minor-version-bump-message: "^(feature|minor):"
@@ -8,6 +8,5 @@ no-bump-message: "^(none|skip):"
88
branches:
99
main:
1010
regex: ^master$|^main$
11-
tag: beta
12-
is-mainline: true
11+
is-main-branch: true
1312
source-branches: [ ]

tests/Backdash.Tests/Backdash.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<NoWarn>CS1591;NU1903</NoWarn>
1010
</PropertyGroup>
1111
<ItemGroup>
12-
<PackageReference Include="Bogus" Version="35.6.1" />
12+
<PackageReference Include="Bogus" Version="35.6.2" />
1313
<PackageReference Include="FakeItEasy" Version="8.3.0"/>
1414
<PackageReference Include="FakeItEasy.AutoFakeIt" Version="2.0.0"/>
1515
<PackageReference Include="FluentAssertions" Version="[7.1.0]"/>

0 commit comments

Comments
 (0)