Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@

version: 2
updates:
- package-ecosystem: "nuget" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
commit-message:
include: scope
prefix: "fix: "
40 changes: 39 additions & 1 deletion .github/workflows/dotnet-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,62 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Git
uses: actions/checkout@v3
with:
token : ${{ secrets.FIREBEND_GIT_PUSH_PAT}}
fetch-depth: 0

- name: Install Versionize
run: dotnet tool install --global Versionize

- name: Setup git
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"

- name: Versionize Release
id: versionize
run: versionize --exit-insignificant-commits
continue-on-error: true

- name: No release required
if: steps.versionize.outcome != 'success'
run: echo "Skipping publishing. No release required."

- name: Setup .NET
if: steps.versionize.outcome != 'success'
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.101

- name: Restore dependencies
if: steps.versionize.outcome != 'success'
run: dotnet restore json-patch-generator.sln

- name: Build
if: steps.versionize.outcome != 'success'
run: dotnet build json-patch-generator.sln --no-restore

- name: Test
if: steps.versionize.outcome != 'success'
run: dotnet test json-patch-generator.sln --no-build --verbosity normal

- name: Pack
if: steps.versionize.outcome != 'success'
run : dotnet pack **/*/JsonPatchGenerator.csproj --configuration Release -o out/pack

- name: Publish
if: steps.versionize.outcome != 'success'
run: dotnet nuget push ./out/pack/*.nupkg --api-key ${{secrets.FIREBEND_NUGET_KEY}} --skip-duplicate --source https://api.nuget.org/v3/index.json

- name: Push version changes
if: steps.versionize.outcome == 'success'
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.FIREBEND_GIT_PUSH_PAT }}
branch: main
tags: true
force: true
unprotect_reviews: true
sleep: 5
23 changes: 23 additions & 0 deletions .versionize
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"changelog": {
"header": "Lit Redis Changelog",
"includeAllCommits": true,
"sections": [
{
"type": "feat",
"section": "✨ Features",
"hidden": false
},
{
"type": "fix",
"section": "🐛 Bug Fixes",
"hidden": true
},
{
"type": "perf",
"section": "🚀 Performance",
"hidden": false
}
]
}
}
1 change: 1 addition & 0 deletions src/JsonPatchGenerator/JsonPatchGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<AssemblyName>Firebend.JsonPatchGenerator</AssemblyName>
<RootNamespace>Firebend.JsonPatch</RootNamespace>
<LangVersion>default</LangVersion>
<Bumper>1</Bumper>
</PropertyGroup>

<PropertyGroup>
Expand Down