From 7711b353326a29448ddc2c98b1641d90c8e46815 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 3 Jul 2025 15:37:20 +0100 Subject: [PATCH 001/230] Update pull-request.yml --- .github/workflows/pull-request.yml | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 8d627f7559..f5103abfb3 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -32,3 +32,37 @@ jobs: #- name: Run backstop # run: npm run backstop:ci + + + + nuget_publish: + name: Build, Pack, and Publish NuGet Package + runs-on: ubuntu-latest + needs: sonar_analysis + #if: github.event.pull_request.merged == true + env: + BUILD_CONFIG: 'Release' + PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + + - name: Restore NuGet packages + run: dotnet restore ${{ env.PROJECT_PATH }} + + - name: Build solution + run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore + + - name: Pack NuGet package + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ '1.1.0' }} + + - name: Add GitHub NuGet source + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.PULLREQUEST_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + + - name: Publish NuGet package to GitHub Packages + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.PULLREQUEST_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate From 0b25b4ee7367ec0035a7192740cd3b6ef3c79943 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 3 Jul 2025 15:46:52 +0100 Subject: [PATCH 002/230] Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index bb7c0f38b7..8af1ad54e4 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -18,6 +18,7 @@ public IViewComponentResult Invoke( bool preventDoubleClick = false) { var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); + var mo = 2; return View(model); } From 4ec4d653fe93f55faa9cb89c2c27970b8540ffe4 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 3 Jul 2025 15:52:37 +0100 Subject: [PATCH 003/230] Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 8af1ad54e4..4619d17094 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -18,7 +18,7 @@ public IViewComponentResult Invoke( bool preventDoubleClick = false) { var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); - var mo = 2; + var mo = 56; return View(model); } From 805bcca10c9fbeb3e53f1ce27fe2f39329425e37 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 3 Jul 2025 15:56:36 +0100 Subject: [PATCH 004/230] Update version in pull-request.yml --- .github/workflows/pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index f5103abfb3..eac776b11a 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -59,7 +59,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ '1.1.0' }} + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ '1.1.1' }} - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.PULLREQUEST_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 1219a41a16ed3bf2dec3a62b5c55f7426efdf37f Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 3 Jul 2025 16:02:04 +0100 Subject: [PATCH 005/230] Update pull-request.yml token --- .github/workflows/pull-request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index f5103abfb3..81b1cfde1c 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -62,7 +62,7 @@ jobs: run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ '1.1.0' }} - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.PULLREQUEST_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.PR_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.PULLREQUEST_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.PR_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate From 347ee00ed03488b50a24860edbfef7f9ea0fba32 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 3 Jul 2025 16:03:02 +0100 Subject: [PATCH 006/230] Update pull-request.yml tokenn --- .github/workflows/pull-request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index eac776b11a..c312fd0b34 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -62,7 +62,7 @@ jobs: run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ '1.1.1' }} - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.PULLREQUEST_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.PR_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.PULLREQUEST_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.PR_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate From 74e3b532e8e244ed4a83405e0b56c3a654f7ae5a Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 3 Jul 2025 16:05:19 +0100 Subject: [PATCH 007/230] Create main.yml --- .github/workflows/main.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..39e13b2121 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +name: Pull request + +on: pull_request + +jobs: + sonar_analysis: + name: Sonar analysis + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + nuget_publish: + name: Build, Pack, and Publish NuGet Package + runs-on: ubuntu-latest + needs: sonar_analysis + #if: github.event.pull_request.merged == true + env: + BUILD_CONFIG: 'Release' + PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + + - name: Restore NuGet packages + run: dotnet restore ${{ env.PROJECT_PATH }} + + - name: Build solution + run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore + + - name: Pack NuGet package + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ '1.1.1' }} + + - name: Add GitHub NuGet source + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.PR_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + + - name: Publish NuGet package to GitHub Packages + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.PR_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate From 1651d84bedf0d21a2c84fb9990db000d32bc7240 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 3 Jul 2025 16:10:56 +0100 Subject: [PATCH 008/230] Update main.yml with github token --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 39e13b2121..6dfe4ff4b7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,7 @@ jobs: run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ '1.1.1' }} - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.PR_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.PR_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate From b7b85b7ff283097513d06e310b739814ea2bae7f Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 3 Jul 2025 16:13:58 +0100 Subject: [PATCH 009/230] Restore pull-request.yml --- .github/workflows/pull-request.yml | 34 ------------------------------ 1 file changed, 34 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index c312fd0b34..8d627f7559 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -32,37 +32,3 @@ jobs: #- name: Run backstop # run: npm run backstop:ci - - - - nuget_publish: - name: Build, Pack, and Publish NuGet Package - runs-on: ubuntu-latest - needs: sonar_analysis - #if: github.event.pull_request.merged == true - env: - BUILD_CONFIG: 'Release' - PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '8.0.x' - - - name: Restore NuGet packages - run: dotnet restore ${{ env.PROJECT_PATH }} - - - name: Build solution - run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - - - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ '1.1.1' }} - - - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.PR_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - - - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.PR_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate From cd27153a88577c75c38e42d68f43f193f42c4c69 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 3 Jul 2025 16:16:38 +0100 Subject: [PATCH 010/230] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6dfe4ff4b7..e383a0e8ec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Pull request +name: Publsih PKG on: pull_request @@ -33,7 +33,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ '1.1.1' }} + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ '1.1.2' }} - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From e237377031dccd5c686c1175ef5c6e5faec49922 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 3 Jul 2025 16:31:19 +0100 Subject: [PATCH 011/230] Update main.yml --- .github/workflows/main.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e383a0e8ec..4c43e5843a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,19 +1,21 @@ -name: Publsih PKG +name: Publish PKG -on: pull_request +on: + push: + branches: + - main # Change as needed jobs: sonar_analysis: name: Sonar analysis runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 nuget_publish: name: Build, Pack, and Publish NuGet Package runs-on: ubuntu-latest needs: sonar_analysis - #if: github.event.pull_request.merged == true env: BUILD_CONFIG: 'Release' PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' @@ -27,16 +29,16 @@ jobs: dotnet-version: '8.0.x' - name: Restore NuGet packages - run: dotnet restore ${{ env.PROJECT_PATH }} + run: dotnet restore ${{ env.PROJECT_PATH }} - name: Build solution - run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore + run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ '1.1.2' }} + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.1.2 - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate From 108005c17fe407af1b5ad1b9b113c9bad88b9716 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 3 Jul 2025 16:34:47 +0100 Subject: [PATCH 012/230] Update CardViewComponent.cs --- DotnetViewComponents/ViewComponents/CardViewComponent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DotnetViewComponents/ViewComponents/CardViewComponent.cs b/DotnetViewComponents/ViewComponents/CardViewComponent.cs index f16e755306..1a0d6b26bb 100644 --- a/DotnetViewComponents/ViewComponents/CardViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/CardViewComponent.cs @@ -31,6 +31,7 @@ public IViewComponentResult Invoke( aspAction, aspRouteData ); + var loe = 43; return View(model); } } From f4dc1403e5a65480d2480a4be04cb6b4b4183f9c Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 3 Jul 2025 16:36:58 +0100 Subject: [PATCH 013/230] Update main.yml --- .github/workflows/main.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4c43e5843a..5ad7428429 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,9 +1,6 @@ name: Publish PKG -on: - push: - branches: - - main # Change as needed +on: pull_request jobs: sonar_analysis: From 1b33b28e4f9bd7e39198bcc4162aa0779aa89c4e Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 3 Jul 2025 16:43:15 +0100 Subject: [PATCH 014/230] Try github.token main.yml --- .github/workflows/main.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5ad7428429..a7e9aac3e8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,13 @@ name: Publish PKG -on: pull_request +on: + pull_request: + branches: + - main + +permissions: + contents: read + packages: write jobs: sonar_analysis: @@ -35,7 +42,7 @@ jobs: run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.1.2 - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ github.token }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ github.token }} --source "github" --skip-duplicate From 679d4a1128c83eb3d7d477f54de9e5d3d49aeadb Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 12:31:43 +0100 Subject: [PATCH 015/230] Update main.yml w orig --- .github/workflows/main.yml | 46 +++++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a7e9aac3e8..e8f9b997bd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,13 +1,6 @@ -name: Publish PKG +name: Publish Package -on: - pull_request: - branches: - - main - -permissions: - contents: read - packages: write +on: pull_request jobs: sonar_analysis: @@ -16,10 +9,37 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - name: Install dependencies + run: npm install + + # - name: Sonar analysis + # uses: sonarsource/sonarcloud-github-action@master + # with: + # projectBaseDir: . + # env: + # GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + # SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + + - name: Run linting + run: npm run lint + + # - name: Run tests + # run: npm test + + # - name: Run backstop + # run: npm run backstop:ci + nuget_publish: name: Build, Pack, and Publish NuGet Package runs-on: ubuntu-latest needs: sonar_analysis + if: github.event.pull_request.merged == true env: BUILD_CONFIG: 'Release' PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' @@ -35,14 +55,14 @@ jobs: - name: Restore NuGet packages run: dotnet restore ${{ env.PROJECT_PATH }} - - name: Build solution + - name: Build project run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.1.2 + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ github.token }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ github.token }} --source "github" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate From d6257924a335b1d6c23b6f8a31bfd041148b9a70 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 12:33:53 +0100 Subject: [PATCH 016/230] Enable nuhet_publish - main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e8f9b997bd..46abe61ec9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,7 +39,7 @@ jobs: name: Build, Pack, and Publish NuGet Package runs-on: ubuntu-latest needs: sonar_analysis - if: github.event.pull_request.merged == true + # if: github.event.pull_request.merged == true env: BUILD_CONFIG: 'Release' PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' From 7106319738d94662428b1635bc10f210070fc1f9 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 12:44:52 +0100 Subject: [PATCH 017/230] Update push - main.yml --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 46abe61ec9..d90e334108 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -65,4 +65,5 @@ jobs: run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate + From b131650346fa04e2061de637746f22a13ca6d744 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 12:53:41 +0100 Subject: [PATCH 018/230] Update main.yml --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d90e334108..846c162245 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,6 +43,7 @@ jobs: env: BUILD_CONFIG: 'Release' PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' + GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} steps: - name: Checkout repository uses: actions/checkout@v4 @@ -62,8 +63,8 @@ jobs: run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate From 597ebf998b4a5ed2a154741e23dd4295d68a41f7 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 12:55:40 +0100 Subject: [PATCH 019/230] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 846c162245..ff2d8159e8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,7 @@ jobs: env: BUILD_CONFIG: 'Release' PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' - GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout repository uses: actions/checkout@v4 From 4b8e0b720ba18d65ecd77281b54fa46763cabcae Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 13:10:37 +0100 Subject: [PATCH 020/230] Update main.yml --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ff2d8159e8..272027707a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,7 @@ jobs: env: BUILD_CONFIG: 'Release' PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout repository uses: actions/checkout@v4 @@ -63,8 +63,8 @@ jobs: run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate From a80633c5ce879363be614fa9dff27bd380ce8390 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 13:46:33 +0100 Subject: [PATCH 021/230] add nuget token - main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 272027707a..4897d9c56d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -63,8 +63,8 @@ jobs: run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.NUGET_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate From 404ab863cee9f309c3859582e1bc126364a6b2a1 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 13:49:57 +0100 Subject: [PATCH 022/230] Update version - main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4897d9c56d..de6ad2e903 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -60,7 +60,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.0.1 - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.NUGET_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 803052f539082fd751994d6fd6cfe8d7e8b53032 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 14:58:28 +0100 Subject: [PATCH 023/230] Update main.yml --- .github/workflows/main.yml | 58 +++++++++++++++----------------------- 1 file changed, 23 insertions(+), 35 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index de6ad2e903..d791783fee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,13 @@ -name: Publish Package +name: Publish PKG -on: pull_request +on: + pull_request: + branches: + - main + +permissions: + contents: read + packages: write jobs: sonar_analysis: @@ -9,41 +16,13 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'npm' - - - name: Install dependencies - run: npm install - - # - name: Sonar analysis - # uses: sonarsource/sonarcloud-github-action@master - # with: - # projectBaseDir: . - # env: - # GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - # SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - - - name: Run linting - run: npm run lint - - # - name: Run tests - # run: npm test - - # - name: Run backstop - # run: npm run backstop:ci - nuget_publish: name: Build, Pack, and Publish NuGet Package runs-on: ubuntu-latest needs: sonar_analysis - # if: github.event.pull_request.merged == true env: BUILD_CONFIG: 'Release' PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout repository uses: actions/checkout@v4 @@ -56,15 +35,24 @@ jobs: - name: Restore NuGet packages run: dotnet restore ${{ env.PROJECT_PATH }} - - name: Build project + - name: Build solution run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.0.1 + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.1.2 - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.NUGET_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ github.token }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + + - name: Dotnet build + run: dotnet build nhsuk-frontend-tel.sln --configuration release - - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate + - name: Package nuget + run: dotnet pack nhsuk-frontend-tel.sln --configuration release -o:package /p:PackageVersion=${{ 1.0.3 }} + - name: Push generated package to GitHub registry + if: startsWith(github.ref, 'refs/tags/v') + run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGETKEY }} --source "githubPackages" --skip-duplicate + + # - name: Publish NuGet package to GitHub Packages + # run: dotnet nuget push out/*.nupkg --api-key ${{ github.token }} --source "github" --skip-duplicate From 25cb5aa315dd0be72bce80504fefee21db310486 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 15:01:20 +0100 Subject: [PATCH 024/230] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d791783fee..414756ea1f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,7 +52,7 @@ jobs: - name: Push generated package to GitHub registry if: startsWith(github.ref, 'refs/tags/v') - run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGETKEY }} --source "githubPackages" --skip-duplicate + run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "githubPackages" --skip-duplicate # - name: Publish NuGet package to GitHub Packages # run: dotnet nuget push out/*.nupkg --api-key ${{ github.token }} --source "github" --skip-duplicate From 93436a1c570c808c79d1a833c0b0c325f90b1873 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 15:02:34 +0100 Subject: [PATCH 025/230] Update CardViewComponent.cs --- DotnetViewComponents/ViewComponents/CardViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/CardViewComponent.cs b/DotnetViewComponents/ViewComponents/CardViewComponent.cs index 1a0d6b26bb..e935b49c90 100644 --- a/DotnetViewComponents/ViewComponents/CardViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/CardViewComponent.cs @@ -31,7 +31,7 @@ public IViewComponentResult Invoke( aspAction, aspRouteData ); - var loe = 43; + var loe = 48; return View(model); } } From bb239e438fdb59e748c604d678579d2cd0fa3fa6 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 15:09:14 +0100 Subject: [PATCH 026/230] Update add main.yml --- .github/workflows/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 414756ea1f..f453891690 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,9 +1,6 @@ name: Publish PKG -on: - pull_request: - branches: - - main +on: pull_request permissions: contents: read @@ -34,12 +31,15 @@ jobs: - name: Restore NuGet packages run: dotnet restore ${{ env.PROJECT_PATH }} + echo "Restored --> ${{ env.PROJECT_PATH }}" - - name: Build solution - run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore + # - name: Build solution + # run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore + # echo "Built --> ${{ env.PROJECT_PATH }}" - - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.1.2 + # - name: Pack NuGet package + # run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.1.2 + # echo "Built --> ${{ env.PROJECT_PATH }}" - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ github.token }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 7720a8d134077a0a20e23006c964755abad2dbc6 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 15:13:09 +0100 Subject: [PATCH 027/230] Update CardViewComponent.cs --- DotnetViewComponents/ViewComponents/CardViewComponent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DotnetViewComponents/ViewComponents/CardViewComponent.cs b/DotnetViewComponents/ViewComponents/CardViewComponent.cs index e935b49c90..2fc719ae01 100644 --- a/DotnetViewComponents/ViewComponents/CardViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/CardViewComponent.cs @@ -32,6 +32,7 @@ public IViewComponentResult Invoke( aspRouteData ); var loe = 48; + var her = "herrr"; return View(model); } } From 8981c332be09328b7b3c1c1c97000a1168659daa Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 15:30:03 +0100 Subject: [PATCH 028/230] Update structure - main.yml --- .github/workflows/main.yml | 102 +++++++++++++++++-------------------- 1 file changed, 48 insertions(+), 54 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f453891690..7f64d20474 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,58 +1,52 @@ name: Publish PKG on: pull_request - -permissions: - contents: read - packages: write - jobs: - sonar_analysis: - name: Sonar analysis - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - nuget_publish: - name: Build, Pack, and Publish NuGet Package - runs-on: ubuntu-latest - needs: sonar_analysis - env: - BUILD_CONFIG: 'Release' - PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '8.0.x' - - - name: Restore NuGet packages - run: dotnet restore ${{ env.PROJECT_PATH }} - echo "Restored --> ${{ env.PROJECT_PATH }}" - - # - name: Build solution - # run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - # echo "Built --> ${{ env.PROJECT_PATH }}" - - # - name: Pack NuGet package - # run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.1.2 - # echo "Built --> ${{ env.PROJECT_PATH }}" - - - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ github.token }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - - - name: Dotnet build - run: dotnet build nhsuk-frontend-tel.sln --configuration release - - - name: Package nuget - run: dotnet pack nhsuk-frontend-tel.sln --configuration release -o:package /p:PackageVersion=${{ 1.0.3 }} - - - name: Push generated package to GitHub registry - if: startsWith(github.ref, 'refs/tags/v') - run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "githubPackages" --skip-duplicate - - # - name: Publish NuGet package to GitHub Packages - # run: dotnet nuget push out/*.nupkg --api-key ${{ github.token }} --source "github" --skip-duplicate + build: + env: + BUILD_CONFIG: 'Release' + PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' + name: Build, Pack, and Publish NuGet Package + runs-on: ubuntu-latest + permissions: + packages: write + strategy: + matrix: + dotnet-version: ['3.1.x'] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + + - name: Restore NuGet packages + run: dotnet restore ${{ env.PROJECT_PATH }} + echo "Restored --> ${{ env.PROJECT_PATH }}" + + # - name: Build solution + # run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore + # echo "Built --> ${{ env.PROJECT_PATH }}" + + # - name: Pack NuGet package + # run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.1.2 + # echo "Built --> ${{ env.PROJECT_PATH }}" + + - name: Add GitHub NuGet source + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ github.token }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + + - name: Dotnet build + run: dotnet build nhsuk-frontend-tel.sln --configuration release + + - name: Package nuget + run: dotnet pack nhsuk-frontend-tel.sln --configuration release -o:package /p:PackageVersion=${{ 1.0.3 }} + + - name: Push generated package to GitHub registry + if: startsWith(github.ref, 'refs/tags/v') + run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "githubPackages" --skip-duplicate + + # - name: Publish NuGet package to GitHub Packages + # run: dotnet nuget push out/*.nupkg --api-key ${{ github.token }} --source "github" --skip-duplicate From caeab604401e0b4ef3d124087184e528766fcee2 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 15:40:03 +0100 Subject: [PATCH 029/230] Update main.yml --- .github/workflows/main.yml | 97 ++++++++++++++++++++------------------ 1 file changed, 50 insertions(+), 47 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f64d20474..2aff064ec5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,50 +3,53 @@ name: Publish PKG on: pull_request jobs: build: - env: - BUILD_CONFIG: 'Release' - PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' - name: Build, Pack, and Publish NuGet Package - runs-on: ubuntu-latest - permissions: - packages: write - strategy: - matrix: - dotnet-version: ['3.1.x'] - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '8.0.x' - - - name: Restore NuGet packages - run: dotnet restore ${{ env.PROJECT_PATH }} - echo "Restored --> ${{ env.PROJECT_PATH }}" - - # - name: Build solution - # run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - # echo "Built --> ${{ env.PROJECT_PATH }}" - - # - name: Pack NuGet package - # run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.1.2 - # echo "Built --> ${{ env.PROJECT_PATH }}" - - - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ github.token }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - - - name: Dotnet build - run: dotnet build nhsuk-frontend-tel.sln --configuration release - - - name: Package nuget - run: dotnet pack nhsuk-frontend-tel.sln --configuration release -o:package /p:PackageVersion=${{ 1.0.3 }} - - - name: Push generated package to GitHub registry - if: startsWith(github.ref, 'refs/tags/v') - run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "githubPackages" --skip-duplicate - - # - name: Publish NuGet package to GitHub Packages - # run: dotnet nuget push out/*.nupkg --api-key ${{ github.token }} --source "github" --skip-duplicate + env: + BUILD_CONFIG: 'Release' + PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' + name: Build, Pack, and Publish NuGet Package + runs-on: ubuntu-latest + permissions: + packages: write + strategy: + matrix: + dotnet-version: ['3.1.x'] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ matrix.dotnet-version }} + + - name: Restore NuGet packages + run: | + dotnet restore ${{ env.PROJECT_PATH }} + echo "Restored --> ${{ env.PROJECT_PATH }}" + + # - name: Build solution + # run: | + # dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore + # echo "Built --> ${{ env.PROJECT_PATH }}" + + # - name: Pack NuGet package + # run: | + # dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion="1.1.2" + # echo "Built --> ${{ env.PROJECT_PATH }}" + + - name: Add GitHub NuGet source + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + + - name: Dotnet build + run: dotnet build nhsuk-frontend-tel.sln --configuration release + + - name: Package nuget + run: dotnet pack nhsuk-frontend-tel.sln --configuration release -o package /p:PackageVersion="1.0.3" + + - name: Push generated package to GitHub registry + if: startsWith(github.ref, 'refs/tags/v') + run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "githubPackages" --skip-duplicate + + # - name: Publish NuGet package to GitHub Packages + # run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate From 5ec4cd2d7a389ddc5e6180926b5a078d45f88c3e Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 15:45:56 +0100 Subject: [PATCH 030/230] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2aff064ec5..ab6bd9d036 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,7 +5,7 @@ jobs: build: env: BUILD_CONFIG: 'Release' - PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' + PROJECT_PATH: 'DotnetViewComponents.csproj' name: Build, Pack, and Publish NuGet Package runs-on: ubuntu-latest permissions: From 92e27e30277529a4705bbb632c0fa3edcdd237bf Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 15:48:30 +0100 Subject: [PATCH 031/230] Update ubuntu version - main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab6bd9d036..bb11898368 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ jobs: BUILD_CONFIG: 'Release' PROJECT_PATH: 'DotnetViewComponents.csproj' name: Build, Pack, and Publish NuGet Package - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: packages: write strategy: From 6120eeffea155b7dbd58da3332fde6b4f90b4b26 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 15:50:31 +0100 Subject: [PATCH 032/230] Update project path - main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bb11898368..f0b8a46177 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,7 +5,7 @@ jobs: build: env: BUILD_CONFIG: 'Release' - PROJECT_PATH: 'DotnetViewComponents.csproj' + PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' name: Build, Pack, and Publish NuGet Package runs-on: ubuntu-22.04 permissions: From 56ced12aad0a928ea14a4204e7a5454afaaacf78 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 16:10:47 +0100 Subject: [PATCH 033/230] Update structure main.yml --- .github/workflows/main.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f0b8a46177..36d50888bf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,28 +28,17 @@ jobs: dotnet restore ${{ env.PROJECT_PATH }} echo "Restored --> ${{ env.PROJECT_PATH }}" - # - name: Build solution - # run: | - # dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - # echo "Built --> ${{ env.PROJECT_PATH }}" - - # - name: Pack NuGet package - # run: | - # dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion="1.1.2" - # echo "Built --> ${{ env.PROJECT_PATH }}" - - - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - - name: Dotnet build run: dotnet build nhsuk-frontend-tel.sln --configuration release - name: Package nuget run: dotnet pack nhsuk-frontend-tel.sln --configuration release -o package /p:PackageVersion="1.0.3" + - name: List generated packages + run: ls -la ./package + + - name: Add GitHub NuGet source + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + - name: Push generated package to GitHub registry - if: startsWith(github.ref, 'refs/tags/v') run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "githubPackages" --skip-duplicate - - # - name: Publish NuGet package to GitHub Packages - # run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate From 41f60251d6f1f3b047b7290bdc7cccbb1ce20255 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 16:16:08 +0100 Subject: [PATCH 034/230] Update with version and push - main.yml --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 36d50888bf..be7fe0b956 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,7 +32,7 @@ jobs: run: dotnet build nhsuk-frontend-tel.sln --configuration release - name: Package nuget - run: dotnet pack nhsuk-frontend-tel.sln --configuration release -o package /p:PackageVersion="1.0.3" + run: dotnet pack nhsuk-frontend-tel.sln --configuration release -o package /p:PackageVersion="1.0.4" - name: List generated packages run: ls -la ./package @@ -41,4 +41,6 @@ jobs: run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Push generated package to GitHub registry - run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "githubPackages" --skip-duplicate + run: | + dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "githubPackages" --skip-duplicate + echo "Package pushed to GitHub Packages" From 3e2cf070b4579f10d2cbf7a079e5183c94875db6 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 16:31:49 +0100 Subject: [PATCH 035/230] Update with release main.yml --- .github/workflows/main.yml | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index be7fe0b956..54fa376b1d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,12 @@ name: Publish PKG -on: pull_request +on: + push: + tags: + - 'v*' # Trigger on version tags (e.g., v1.0.0) + pull_request: # Trigger on pull requests + types: [opened, synchronize, reopened] # Specify the types of pull request events to trigger the workflow + jobs: build: env: @@ -10,6 +16,7 @@ jobs: runs-on: ubuntu-22.04 permissions: packages: write + contents: write # Required to create a release strategy: matrix: dotnet-version: ['3.1.x'] @@ -28,11 +35,11 @@ jobs: dotnet restore ${{ env.PROJECT_PATH }} echo "Restored --> ${{ env.PROJECT_PATH }}" - - name: Dotnet build - run: dotnet build nhsuk-frontend-tel.sln --configuration release + - name: Build solution + run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Package nuget - run: dotnet pack nhsuk-frontend-tel.sln --configuration release -o package /p:PackageVersion="1.0.4" + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} -o package /p:PackageVersion="${{ github.ref_name }}" - name: List generated packages run: ls -la ./package @@ -41,6 +48,23 @@ jobs: run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Push generated package to GitHub registry - run: | - dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "githubPackages" --skip-duplicate - echo "Package pushed to GitHub Packages" + run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "githubPackages" --skip-duplicate + + - name: Create Release + id: create_release + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ github.ref_name }} + release_name: Release ${{ github.ref_name }} + draft: false + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload Package to Release + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ github.ref_name }} + files: ./package/*.nupkg + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 049903cbdf88bd2d2ec51a16b19d16f3e53a402e Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 16:52:19 +0100 Subject: [PATCH 036/230] Update again - main.yml --- .github/workflows/main.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 54fa376b1d..d8cd6fdcf8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,8 +38,17 @@ jobs: - name: Build solution run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore + - name: Determine Package Version + id: version + run: | + if [[ "${GITHUB_REF}" == refs/tags/* ]]; then + echo "PACKAGE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + else + echo "PACKAGE_VERSION=0.1.0-${GITHUB_REF_NAME}" >> $GITHUB_ENV # Fallback version for branches + fi + - name: Package nuget - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} -o package /p:PackageVersion="${{ github.ref_name }}" + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} -o package /p:PackageVersion="${PACKAGE_VERSION}" - name: List generated packages run: ls -la ./package @@ -48,6 +57,7 @@ jobs: run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Push generated package to GitHub registry + if: startsWith(github.ref, 'refs/tags/v') run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "githubPackages" --skip-duplicate - name: Create Release From 0c1e501bc79f2ad681ce29ea93eb5eb0667e43e6 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 16:55:22 +0100 Subject: [PATCH 037/230] Update correct string - main.yml --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d8cd6fdcf8..f4f7863834 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,7 +44,9 @@ jobs: if [[ "${GITHUB_REF}" == refs/tags/* ]]; then echo "PACKAGE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV else - echo "PACKAGE_VERSION=0.1.0-${GITHUB_REF_NAME}" >> $GITHUB_ENV # Fallback version for branches + # Replace slashes with dots or underscores for branch names + sanitized_branch_name=$(echo "${GITHUB_REF_NAME}" | tr '/' '.') + echo "PACKAGE_VERSION=0.1.0-${sanitized_branch_name}" >> $GITHUB_ENV fi - name: Package nuget From 0917709625da28f9204b434db124afe6cdd557f0 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 17:02:31 +0100 Subject: [PATCH 038/230] Update to NUGET_TOKEN main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f4f7863834..00c5db8541 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -56,7 +56,7 @@ jobs: run: ls -la ./package - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.NUGET_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Push generated package to GitHub registry if: startsWith(github.ref, 'refs/tags/v') From 53166b1de1c34e63f1c390e07beee7c924e36029 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 17:05:27 +0100 Subject: [PATCH 039/230] Update version main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 00c5db8541..dff0b9ca59 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,7 +46,7 @@ jobs: else # Replace slashes with dots or underscores for branch names sanitized_branch_name=$(echo "${GITHUB_REF_NAME}" | tr '/' '.') - echo "PACKAGE_VERSION=0.1.0-${sanitized_branch_name}" >> $GITHUB_ENV + echo "PACKAGE_VERSION=0.1.5-${sanitized_branch_name}" >> $GITHUB_ENV fi - name: Package nuget From 4aa68b1cf69b3d92224bfa2773fe09f97a502530 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 4 Jul 2025 17:07:45 +0100 Subject: [PATCH 040/230] Update with echo main.yml --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dff0b9ca59..bdf54339fd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,8 +59,9 @@ jobs: run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.NUGET_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Push generated package to GitHub registry - if: startsWith(github.ref, 'refs/tags/v') - run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "githubPackages" --skip-duplicate + run: | + dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "githubPackages" --skip-duplicate + echo "Package pushed to GitHub Packages" - name: Create Release id: create_release From aa7d5361c5cbc24a93185dc3a991352473d3b284 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 08:51:33 +0100 Subject: [PATCH 041/230] Update token main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bdf54339fd..fb347d6153 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -56,11 +56,11 @@ jobs: run: ls -la ./package - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.NUGET_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.PULLREQUEST_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Push generated package to GitHub registry run: | - dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source "githubPackages" --skip-duplicate + dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.PULLREQUEST_TOKEN }} --source "githubPackages" --skip-duplicate echo "Package pushed to GitHub Packages" - name: Create Release From 71ca6a1669f5f4a0030328511ae9045299a2eef8 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 08:57:56 +0100 Subject: [PATCH 042/230] Update structure 1 main.yml --- .github/workflows/main.yml | 89 +++++++++++++------------------------- 1 file changed, 31 insertions(+), 58 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fb347d6153..a775acbf11 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,83 +1,56 @@ -name: Publish PKG +name: Continuous Integration -on: - push: - tags: - - 'v*' # Trigger on version tags (e.g., v1.0.0) - pull_request: # Trigger on pull requests - types: [opened, synchronize, reopened] # Specify the types of pull request events to trigger the workflow +on: [push] jobs: build: env: BUILD_CONFIG: 'Release' - PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' - name: Build, Pack, and Publish NuGet Package - runs-on: ubuntu-22.04 + SOLUTION: 'DotnetViewComponents.sln' + name: Build and publish package + runs-on: ubuntu-20.04 permissions: packages: write - contents: write # Required to create a release - strategy: + strategy: matrix: dotnet-version: ['3.1.x'] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Setup .NET - uses: actions/setup-dotnet@v4 + - name: Install ICU library + run: sudo apt-get update && sudo apt-get install -y libicu-dev + + - name: Setup .NET Core SDK + uses: actions/setup-dotnet@v1 with: dotnet-version: ${{ matrix.dotnet-version }} - - name: Restore NuGet packages - run: | - dotnet restore ${{ env.PROJECT_PATH }} - echo "Restored --> ${{ env.PROJECT_PATH }}" + - name: Install GitVersion + uses: gittools/actions/gitversion/setup@v0.9.7 + with: + versionSpec: '5.5.0' - - name: Build solution - run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore + - name: Determine Version + id: gitversion + uses: gittools/actions/gitversion/execute@v0.9.7 - - name: Determine Package Version - id: version + - name: Display GitVersion outputs run: | - if [[ "${GITHUB_REF}" == refs/tags/* ]]; then - echo "PACKAGE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - else - # Replace slashes with dots or underscores for branch names - sanitized_branch_name=$(echo "${GITHUB_REF_NAME}" | tr '/' '.') - echo "PACKAGE_VERSION=0.1.5-${sanitized_branch_name}" >> $GITHUB_ENV - fi + echo "Major: ${{ steps.gitversion.outputs.major }}" + echo "Minor: ${{ steps.gitversion.outputs.minor }}" + echo "Patch: ${{ steps.gitversion.outputs.patch }}" + echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" - - name: Package nuget - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} -o package /p:PackageVersion="${PACKAGE_VERSION}" + - name: Add GitHub registry + run: dotnet nuget add source --username 'kevin.whittaker' --password ${{ secrets.PULLREQUEST_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/TechnologyEnhancedLearning/index.json" - - name: List generated packages - run: ls -la ./package + - name: Dotnet build + run: dotnet build DotnetViewComponents.sln --configuration release - - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.PULLREQUEST_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + - name: Package nuget + run: dotnet pack DotnetViewComponents.sln --configuration release -o:package /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} - name: Push generated package to GitHub registry - run: | - dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.PULLREQUEST_TOKEN }} --source "githubPackages" --skip-duplicate - echo "Package pushed to GitHub Packages" - - - name: Create Release - id: create_release - uses: softprops/action-gh-release@v1 - with: - tag_name: ${{ github.ref_name }} - release_name: Release ${{ github.ref_name }} - draft: false - prerelease: false - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Upload Package to Release - uses: softprops/action-gh-release@v1 - with: - tag_name: ${{ github.ref_name }} - files: ./package/*.nupkg - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.PULLREQUEST_TOKEN }} --source "githubPackages" --skip-duplicate From 0c774426f4e3284ebfe71b7a567bded5306068c6 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 08:59:43 +0100 Subject: [PATCH 043/230] Update ubuntu version main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a775acbf11..d0bd0f39b3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: BUILD_CONFIG: 'Release' SOLUTION: 'DotnetViewComponents.sln' name: Build and publish package - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest permissions: packages: write strategy: From f5883b91459ff559d105aab0d84645e4b2d315e0 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 09:06:45 +0100 Subject: [PATCH 044/230] remove gittools main.yml --- .github/workflows/main.yml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d0bd0f39b3..92f1491938 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,30 +27,15 @@ jobs: with: dotnet-version: ${{ matrix.dotnet-version }} - - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9.7 - with: - versionSpec: '5.5.0' - - - name: Determine Version - id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.7 - - - name: Display GitVersion outputs - run: | - echo "Major: ${{ steps.gitversion.outputs.major }}" - echo "Minor: ${{ steps.gitversion.outputs.minor }}" - echo "Patch: ${{ steps.gitversion.outputs.patch }}" - echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" - name: Add GitHub registry - run: dotnet nuget add source --username 'kevin.whittaker' --password ${{ secrets.PULLREQUEST_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/TechnologyEnhancedLearning/index.json" + run: dotnet nuget add source --username 'dalin.akrasi' --password ${{ secrets.PULLREQUEST_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/TechnologyEnhancedLearning/index.json" - name: Dotnet build run: dotnet build DotnetViewComponents.sln --configuration release - name: Package nuget - run: dotnet pack DotnetViewComponents.sln --configuration release -o:package /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} + run: dotnet pack DotnetViewComponents.sln --configuration release -o:package /p:PackageVersion=${{ 14.3 }} - name: Push generated package to GitHub registry run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.PULLREQUEST_TOKEN }} --source "githubPackages" --skip-duplicate From 6d4eb765ba73982ac26279a037bfa3466fe3d751 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 09:18:26 +0100 Subject: [PATCH 045/230] Update to push main.yml --- .github/workflows/main.yml | 63 +++++++++++++++++++++----------------- 1 file changed, 35 insertions(+), 28 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 92f1491938..f899c06a9f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,41 +1,48 @@ -name: Continuous Integration +name: Publish NuGet Package -on: [push] +on: + push: + branches: + - main + +permissions: + contents: read + packages: write jobs: - build: - env: - BUILD_CONFIG: 'Release' - SOLUTION: 'DotnetViewComponents.sln' - name: Build and publish package + sonar_analysis: + name: Sonar analysis runs-on: ubuntu-latest - permissions: - packages: write - strategy: - matrix: - dotnet-version: ['3.1.x'] steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 + - uses: actions/checkout@v4 - - name: Install ICU library - run: sudo apt-get update && sudo apt-get install -y libicu-dev + nuget_publish: + name: Build, Pack, and Publish NuGet Package + runs-on: ubuntu-latest + needs: sonar_analysis + env: + BUILD_CONFIG: 'Release' + PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' + steps: + - name: Checkout repository + uses: actions/checkout@v4 - - name: Setup .NET Core SDK - uses: actions/setup-dotnet@v1 + - name: Setup .NET + uses: actions/setup-dotnet@v4 with: - dotnet-version: ${{ matrix.dotnet-version }} + dotnet-version: '8.0.x' + - name: Restore NuGet packages + run: dotnet restore ${{ env.PROJECT_PATH }} - - name: Add GitHub registry - run: dotnet nuget add source --username 'dalin.akrasi' --password ${{ secrets.PULLREQUEST_TOKEN }} --store-password-in-clear-text --name githubPackages "https://nuget.pkg.github.com/TechnologyEnhancedLearning/index.json" + - name: Build solution + run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - - name: Dotnet build - run: dotnet build DotnetViewComponents.sln --configuration release + - name: Pack NuGet package + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.1.2 - - name: Package nuget - run: dotnet pack DotnetViewComponents.sln --configuration release -o:package /p:PackageVersion=${{ 14.3 }} + - name: Add GitHub NuGet source + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - - name: Push generated package to GitHub registry - run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.PULLREQUEST_TOKEN }} --source "githubPackages" --skip-duplicate + - name: Publish NuGet package to GitHub Packages + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate From 1414012f2440fb1b0479b390db6c640f3c27fd70 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 09:19:49 +0100 Subject: [PATCH 046/230] Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index bb7c0f38b7..840d7e44ea 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -18,6 +18,7 @@ public IViewComponentResult Invoke( bool preventDoubleClick = false) { var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); + var umo= ciao; return View(model); } From 619e45f68139be3cbb6f36043018ba6864a256e7 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 09:22:59 +0100 Subject: [PATCH 047/230] Update token main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f899c06a9f..35ce371058 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,7 +42,7 @@ jobs: run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.1.2 - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.PULLREQUEST_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.PULLREQUEST_TOKEN }} --source "github" --skip-duplicate From 1b0418f720d59e54f0f3bf363993845ec64f4c33 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 09:24:08 +0100 Subject: [PATCH 048/230] Update CardViewComponent.cs --- DotnetViewComponents/ViewComponents/CardViewComponent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DotnetViewComponents/ViewComponents/CardViewComponent.cs b/DotnetViewComponents/ViewComponents/CardViewComponent.cs index 2fc719ae01..44817364e6 100644 --- a/DotnetViewComponents/ViewComponents/CardViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/CardViewComponent.cs @@ -19,6 +19,7 @@ public IViewComponentResult Invoke( string? aspAction = null, Dictionary? aspRouteData = null) { + var uno = uno; var model = new CardViewModel ( title, From 72cad0c77df8088ff0014b4829d8725cd305c8c6 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 09:26:50 +0100 Subject: [PATCH 049/230] Update CardViewComponent.cs uno --- DotnetViewComponents/ViewComponents/CardViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/CardViewComponent.cs b/DotnetViewComponents/ViewComponents/CardViewComponent.cs index 44817364e6..40e53d4459 100644 --- a/DotnetViewComponents/ViewComponents/CardViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/CardViewComponent.cs @@ -19,7 +19,7 @@ public IViewComponentResult Invoke( string? aspAction = null, Dictionary? aspRouteData = null) { - var uno = uno; + var uno = 112; var model = new CardViewModel ( title, From 0228a7460c19a54e9508e6584f17a881ddc03661 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 09:29:46 +0100 Subject: [PATCH 050/230] Update CardViewComponent.cs --- DotnetViewComponents/ViewComponents/CardViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/CardViewComponent.cs b/DotnetViewComponents/ViewComponents/CardViewComponent.cs index 40e53d4459..21842dc143 100644 --- a/DotnetViewComponents/ViewComponents/CardViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/CardViewComponent.cs @@ -19,7 +19,7 @@ public IViewComponentResult Invoke( string? aspAction = null, Dictionary? aspRouteData = null) { - var uno = 112; + var uno = 118; var model = new CardViewModel ( title, From f52649b1fcfb88438d9ac9dbb7b2d59ecdc06bc5 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 10:46:46 +0100 Subject: [PATCH 051/230] Update main.yml REVERSE --- .github/workflows/main.yml | 46 +++++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 35ce371058..a638f292a2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,13 +1,6 @@ -name: Publish NuGet Package +name: Pull request -on: - push: - branches: - - main - -permissions: - contents: read - packages: write +on: push jobs: sonar_analysis: @@ -16,10 +9,37 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - name: Install dependencies + run: npm install + + # - name: Sonar analysis + # uses: sonarsource/sonarcloud-github-action@master + # with: + # projectBaseDir: . + # env: + # GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + # SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + + - name: Run linting + run: npm run lint + + # - name: Run tests + # run: npm test + + # - name: Run backstop + # run: npm run backstop:ci + nuget_publish: name: Build, Pack, and Publish NuGet Package runs-on: ubuntu-latest needs: sonar_analysis + # if: github.event.pull_request.merged == true env: BUILD_CONFIG: 'Release' PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' @@ -35,14 +55,14 @@ jobs: - name: Restore NuGet packages run: dotnet restore ${{ env.PROJECT_PATH }} - - name: Build solution + - name: Build project run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.1.2 + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.PULLREQUEST_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.PULLREQUEST_TOKEN }} --source "github" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate From f8a170bef619d227492ec03e4a8168a4aaa12812 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 10:47:52 +0100 Subject: [PATCH 052/230] Update CardViewComponent.cs --- DotnetViewComponents/ViewComponents/CardViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/CardViewComponent.cs b/DotnetViewComponents/ViewComponents/CardViewComponent.cs index 21842dc143..f3067ec2b9 100644 --- a/DotnetViewComponents/ViewComponents/CardViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/CardViewComponent.cs @@ -19,7 +19,7 @@ public IViewComponentResult Invoke( string? aspAction = null, Dictionary? aspRouteData = null) { - var uno = 118; + var uno = 198; var model = new CardViewModel ( title, From 65c079a28a3d235df777578ba2560683e26c7604 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 10:53:29 +0100 Subject: [PATCH 053/230] Update main.yml token --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a638f292a2..fbbfbe72cd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -62,7 +62,7 @@ jobs: run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ GITHUB_TOKEN }} --source "github" --skip-duplicate From 04ff3fe8d9b56ac9c9e162fb29b93c0257a0ea54 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 10:55:28 +0100 Subject: [PATCH 054/230] Update main.yml tokens --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fbbfbe72cd..94d45eb1b6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -62,7 +62,7 @@ jobs: run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ GITHUB_TOKEN }} --source "github" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.PULLREQUEST_TOKEN }} --source "github" --skip-duplicate From 74f1dd9d6c6f05d8cf2504e01a5828fc02ea8565 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 11:32:03 +0100 Subject: [PATCH 055/230] Update main.yml with hardcoded version --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 94d45eb1b6..4017e8caae 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,7 +59,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.1.2 - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 46bb3c49c854efec804988508b9da0d41bbf2f0b Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 11:34:03 +0100 Subject: [PATCH 056/230] Update main.yml version 2 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4017e8caae..3f05703687 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,7 +59,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=1.1.2 + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=2.4.0 - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From f5eb0136612e9aba067e90362f8ca3fc2daa4d3d Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 13:37:09 +0100 Subject: [PATCH 057/230] Update CardViewComponent.cs --- DotnetViewComponents/ViewComponents/CardViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/CardViewComponent.cs b/DotnetViewComponents/ViewComponents/CardViewComponent.cs index f3067ec2b9..2798b8853e 100644 --- a/DotnetViewComponents/ViewComponents/CardViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/CardViewComponent.cs @@ -19,7 +19,7 @@ public IViewComponentResult Invoke( string? aspAction = null, Dictionary? aspRouteData = null) { - var uno = 198; + var uno = 199; var model = new CardViewModel ( title, From 66de7cabc368ef2c85f95d09f06e8454be912b25 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 13:38:50 +0100 Subject: [PATCH 058/230] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3f05703687..e765b2127f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,7 +59,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=2.4.0 + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=2.4.1 - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 26d4887fdc787d667588625d2eed0f91f2e179d9 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 13:43:25 +0100 Subject: [PATCH 059/230] Update main.yml version --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e765b2127f..2e5275e94e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,7 +59,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=2.4.1 + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=2.4.2 - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 73e66aa97b74e7ef5488935bfffe93105db3e00d Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 13:46:32 +0100 Subject: [PATCH 060/230] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2e5275e94e..53026042ef 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,7 +59,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=2.4.2 + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=2.4.3 - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 2ce94ed6a140662778c45094cda57f4b19135167 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 13:50:40 +0100 Subject: [PATCH 061/230] Update DotnetViewComponents.csproj --- DotnetViewComponents/DotnetViewComponents.csproj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DotnetViewComponents/DotnetViewComponents.csproj b/DotnetViewComponents/DotnetViewComponents.csproj index c837484181..028a9d1113 100644 --- a/DotnetViewComponents/DotnetViewComponents.csproj +++ b/DotnetViewComponents/DotnetViewComponents.csproj @@ -5,6 +5,8 @@ enable enable True + https://github.com/akdalin-hee/nhse-tel-frontend-TEST2 + git From fa0892c361a8fc35208c358e95b742d37f2a1dbd Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 13:52:51 +0100 Subject: [PATCH 062/230] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 53026042ef..5a8ed903b6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,7 +59,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=2.4.3 + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=2.4.4 - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 0cffb4077e449c8fb4d36b1d5fd5af9c1e6f74bf Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 15:39:02 +0100 Subject: [PATCH 063/230] Update DotnetViewComponents.csproj --- DotnetViewComponents/DotnetViewComponents.csproj | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DotnetViewComponents/DotnetViewComponents.csproj b/DotnetViewComponents/DotnetViewComponents.csproj index 028a9d1113..ad72b9f15d 100644 --- a/DotnetViewComponents/DotnetViewComponents.csproj +++ b/DotnetViewComponents/DotnetViewComponents.csproj @@ -5,8 +5,13 @@ enable enable True + https://github.com/akdalin-hee/nhse-tel-frontend-TEST2 https://github.com/akdalin-hee/nhse-tel-frontend-TEST2 git + DotnetViewComponents + MIT + + HEE TEL From 9876eac47b7d43d04ffeb4620117c903296af1a4 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 7 Jul 2025 15:40:27 +0100 Subject: [PATCH 064/230] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5a8ed903b6..44f830726d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,7 +59,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=2.4.4 + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=2.4.5 - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 696e044e564ad3575d20fcb4a86ff687d864d527 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 15:29:21 +0100 Subject: [PATCH 065/230] Update main.yml - auto versioning --- .github/workflows/main.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 44f830726d..b8d07114a6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,6 +52,22 @@ jobs: with: dotnet-version: '8.0.x' + - name: Install GitVersion + uses: gittools/actions/gitversion/setup@v0.9.7 + with: + versionSpec: '5.5.0' + + - name: Determine Version + id: gitversion + uses: gittools/actions/gitversion/execute@v0.9.7 + + - name: Display GitVersion outputs + run: | + echo "Major: ${{ steps.gitversion.outputs.major }}" + echo "Minor: ${{ steps.gitversion.outputs.minor }}" + echo "Patch: ${{ steps.gitversion.outputs.patch }}" + echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" + - name: Restore NuGet packages run: dotnet restore ${{ env.PROJECT_PATH }} @@ -59,7 +75,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=2.4.5 + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 8adacc7337196c0b606f89c9e321ef9e723857bb Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 15:47:44 +0100 Subject: [PATCH 066/230] Update main.yml - dotnet --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b8d07114a6..585d004582 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,11 +46,13 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup .NET - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v1 with: - dotnet-version: '8.0.x' + dotnet-version: ${{ matrix.dotnet-version }} - name: Install GitVersion uses: gittools/actions/gitversion/setup@v0.9.7 From 2a67fa71e3a4dfaa506ca375b1223fd4d66f95cf Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 15:54:16 +0100 Subject: [PATCH 067/230] Update main.yml - dotnet version - remove sonar --- .github/workflows/main.yml | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 585d004582..b3e633db14 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,42 +3,9 @@ name: Pull request on: push jobs: - sonar_analysis: - name: Sonar analysis - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'npm' - - - name: Install dependencies - run: npm install - - # - name: Sonar analysis - # uses: sonarsource/sonarcloud-github-action@master - # with: - # projectBaseDir: . - # env: - # GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - # SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - - - name: Run linting - run: npm run lint - - # - name: Run tests - # run: npm test - - # - name: Run backstop - # run: npm run backstop:ci - nuget_publish: name: Build, Pack, and Publish NuGet Package runs-on: ubuntu-latest - needs: sonar_analysis # if: github.event.pull_request.merged == true env: BUILD_CONFIG: 'Release' @@ -50,7 +17,7 @@ jobs: fetch-depth: 0 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: ${{ matrix.dotnet-version }} From 9ffa9c91601464729d09a684ca9787609cc65ed5 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 15:55:52 +0100 Subject: [PATCH 068/230] Update main.yml - dotnet version --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b3e633db14..b8d6851fe3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: ${{ matrix.dotnet-version }} + dotnet-version: '6.0.x' - name: Install GitVersion uses: gittools/actions/gitversion/setup@v0.9.7 From a8cddb97665489bae8943e089d7439a3776e5176 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 15:58:03 +0100 Subject: [PATCH 069/230] Update main.yml - remove disp gitV --- .github/workflows/main.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b8d6851fe3..5470ce714a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,13 +30,6 @@ jobs: id: gitversion uses: gittools/actions/gitversion/execute@v0.9.7 - - name: Display GitVersion outputs - run: | - echo "Major: ${{ steps.gitversion.outputs.major }}" - echo "Minor: ${{ steps.gitversion.outputs.minor }}" - echo "Patch: ${{ steps.gitversion.outputs.patch }}" - echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" - - name: Restore NuGet packages run: dotnet restore ${{ env.PROJECT_PATH }} From f5967422f4928466ecd1168290feb769bf4a1207 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 16:02:26 +0100 Subject: [PATCH 070/230] Update main.yml - add git strategy --- .github/workflows/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5470ce714a..4e541f2066 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,10 @@ jobs: env: BUILD_CONFIG: 'Release' PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' + strategy: + matrix: + dotnet-version: ['3.1.x'] + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -30,6 +34,13 @@ jobs: id: gitversion uses: gittools/actions/gitversion/execute@v0.9.7 + - name: Display GitVersion outputs + run: | + echo "Major: ${{ steps.gitversion.outputs.major }}" + echo "Minor: ${{ steps.gitversion.outputs.minor }}" + echo "Patch: ${{ steps.gitversion.outputs.patch }}" + echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" + - name: Restore NuGet packages run: dotnet restore ${{ env.PROJECT_PATH }} From 99af6cf9e2f40536e9e127fdb11f192af0574a44 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 16:05:50 +0100 Subject: [PATCH 071/230] Update main.yml - checkout depth --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4e541f2066..b8bca5d718 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v2 with: fetch-depth: 0 From eb334b514844fb8c29357949c3aa0be402d73525 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 16:59:24 +0100 Subject: [PATCH 072/230] Update main.yml - version --- .github/workflows/main.yml | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b8bca5d718..33fd987859 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,31 +15,26 @@ jobs: dotnet-version: ['3.1.x'] steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - fetch-depth: 0 + - name: Checkout code + uses: actions/checkout@v3 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: - dotnet-version: '6.0.x' + dotnet-version: '6.0.x' # Specify the .NET version you are using - name: Install GitVersion uses: gittools/actions/gitversion/setup@v0.9.7 - with: - versionSpec: '5.5.0' - - - name: Determine Version - id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.7 - - name: Display GitVersion outputs + - name: Run GitVersion + id: gitversion + run: gitversion /output json /showvariable SemVer + + - name: Set version run: | - echo "Major: ${{ steps.gitversion.outputs.major }}" - echo "Minor: ${{ steps.gitversion.outputs.minor }}" - echo "Patch: ${{ steps.gitversion.outputs.patch }}" - echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" + echo "##[set-output name=version;]${{ steps.gitversion.outputs.SemVer }}" + + - name: Restore NuGet packages run: dotnet restore ${{ env.PROJECT_PATH }} @@ -48,7 +43,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.version }} - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 48a67a5d69ad42408443bf7c891d1d4d62b63867 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 17:04:14 +0100 Subject: [PATCH 073/230] Update main.yml - add env variable --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 33fd987859..741496a516 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,8 +31,8 @@ jobs: run: gitversion /output json /showvariable SemVer - name: Set version - run: | - echo "##[set-output name=version;]${{ steps.gitversion.outputs.SemVer }}" + id: set_version + run: echo "version=${{ steps.gitversion.outputs.SemVer }}" >> $GITHUB_ENV @@ -43,7 +43,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.version }} + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ env.version }} - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From fbd5bf4445d72bb191b943aab77f70d5572d3f18 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 17:16:51 +0100 Subject: [PATCH 074/230] Update main.yml - formatting --- .github/workflows/main.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 741496a516..42ed05ba03 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,20 +8,20 @@ jobs: runs-on: ubuntu-latest # if: github.event.pull_request.merged == true env: - BUILD_CONFIG: 'Release' - PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' - strategy: - matrix: - dotnet-version: ['3.1.x'] + BUILD_CONFIG: "Release" + PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" + strategy: + matrix: + dotnet-version: ["3.1.x"] steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v2 - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: '6.0.x' # Specify the .NET version you are using + dotnet-version: "6.0.x" - name: Install GitVersion uses: gittools/actions/gitversion/setup@v0.9.7 @@ -34,8 +34,6 @@ jobs: id: set_version run: echo "version=${{ steps.gitversion.outputs.SemVer }}" >> $GITHUB_ENV - - - name: Restore NuGet packages run: dotnet restore ${{ env.PROJECT_PATH }} From 70993f6cbc3232bb227041f0f72a03ec28194d20 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 18:47:32 +0100 Subject: [PATCH 075/230] Update main.yml - reference --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 42ed05ba03..1493ea96af 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" strategy: matrix: - dotnet-version: ["3.1.x"] + dotnet-version: ["3.1.x", "6.0.x"] steps: - name: Checkout code @@ -21,7 +21,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: "6.0.x" + dotnet-version: ${{ matrix.dotnet-version }} - name: Install GitVersion uses: gittools/actions/gitversion/setup@v0.9.7 From e5753996ab792fa77b3d2aae3ac597b7fc872bc9 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 19:01:54 +0100 Subject: [PATCH 076/230] Update main.yml - update gitvesion --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1493ea96af..7d9a53c3a3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,7 +24,7 @@ jobs: dotnet-version: ${{ matrix.dotnet-version }} - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9.7 + uses: gittools/actions/gitversion/setup@v0.9.8 - name: Run GitVersion id: gitversion From 7dff1f68f20396a6d6db918e3739b8ea01a3b2eb Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 19:04:17 +0100 Subject: [PATCH 077/230] Update main.yml - debug --- .github/workflows/main.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7d9a53c3a3..4cb2c03f2a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,6 @@ jobs: nuget_publish: name: Build, Pack, and Publish NuGet Package runs-on: ubuntu-latest - # if: github.event.pull_request.merged == true env: BUILD_CONFIG: "Release" PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" @@ -23,6 +22,9 @@ jobs: with: dotnet-version: ${{ matrix.dotnet-version }} + - name: Check .NET version + run: dotnet --version + - name: Install GitVersion uses: gittools/actions/gitversion/setup@v0.9.8 @@ -41,10 +43,10 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ env.version }} + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ env.version }} - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.PULLREQUEST_TOKEN }} --source "github" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate From 37f7a648bd196a95687fbd096913d7bdf97ddbf2 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 19:29:26 +0100 Subject: [PATCH 078/230] Update main.yml - gittools --- .github/workflows/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4cb2c03f2a..de8282bbc2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,25 +15,25 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup .NET uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ matrix.dotnet-version }} - - name: Check .NET version - run: dotnet --version - - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9.8 + uses: gittools/actions/gitversion/setup@v1 + with: + versionSpec: '6.x' - name: Run GitVersion id: gitversion - run: gitversion /output json /showvariable SemVer + uses: gittools/actions/gitversion/execute@v1 - name: Set version - id: set_version run: echo "version=${{ steps.gitversion.outputs.SemVer }}" >> $GITHUB_ENV - name: Restore NuGet packages From 36a6cc5701a8784da5a63a7108af57da7d18eceb Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 19:34:53 +0100 Subject: [PATCH 079/230] Update main.yml - gittools v --- .github/workflows/main.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index de8282bbc2..b2db71d438 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,12 +6,15 @@ jobs: nuget_publish: name: Build, Pack, and Publish NuGet Package runs-on: ubuntu-latest + permissions: + contents: write + packages: write env: BUILD_CONFIG: "Release" PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" strategy: matrix: - dotnet-version: ["3.1.x", "6.0.x"] + dotnet-version: ["6.0.x", "8.0.x"] steps: - name: Checkout code @@ -19,22 +22,22 @@ jobs: with: fetch-depth: 0 - - name: Setup .NET + - name: Setup .NET SDK uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ matrix.dotnet-version }} - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v1 + uses: gittools/actions/gitversion/setup@v1.1.1 with: - versionSpec: '6.x' + versionSpec: '5.x' # Or '6.x' for the latest GitVersion features - - name: Run GitVersion + - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v1 + uses: gittools/actions/gitversion/execute@v1.1.1 - - name: Set version - run: echo "version=${{ steps.gitversion.outputs.SemVer }}" >> $GITHUB_ENV + - name: Display GitVersion outputs + run: echo "Calculated Version:${{ steps.gitversion.outputs.semVer }}" - name: Restore NuGet packages run: dotnet restore ${{ env.PROJECT_PATH }} From e855fc45238c9fb35ead5401e1c3bae356d75410 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 19:44:52 +0100 Subject: [PATCH 080/230] Update main.yml - gitv --- .github/workflows/main.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b2db71d438..b5c8785e63 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,23 +6,19 @@ jobs: nuget_publish: name: Build, Pack, and Publish NuGet Package runs-on: ubuntu-latest - permissions: - contents: write - packages: write + # if: github.event.pull_request.merged == true env: BUILD_CONFIG: "Release" PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" strategy: matrix: - dotnet-version: ["6.0.x", "8.0.x"] + dotnet-version: ["3.1.x", "6.0.x"] steps: - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 + uses: actions/checkout@v2 - - name: Setup .NET SDK + - name: Setup .NET uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ matrix.dotnet-version }} @@ -30,14 +26,15 @@ jobs: - name: Install GitVersion uses: gittools/actions/gitversion/setup@v1.1.1 with: - versionSpec: '5.x' # Or '6.x' for the latest GitVersion features + versionSpec: '5.x' - - name: Determine Version + - name: Run GitVersion id: gitversion - uses: gittools/actions/gitversion/execute@v1.1.1 + run: gitversion /output json /showvariable SemVer - - name: Display GitVersion outputs - run: echo "Calculated Version:${{ steps.gitversion.outputs.semVer }}" + - name: Set version + id: set_version + run: echo "version=${{ steps.gitversion.outputs.SemVer }}" >> $GITHUB_ENV - name: Restore NuGet packages run: dotnet restore ${{ env.PROJECT_PATH }} @@ -46,10 +43,10 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ env.version }} + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ env.version }} - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.PULLREQUEST_TOKEN }} --source "github" --skip-duplicate From 49139dd8607a555e08ce7e4002bec7a0c94cf52a Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 19:53:37 +0100 Subject: [PATCH 081/230] Update main.yml - dotnversion --- .github/workflows/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b5c8785e63..2da4e207da 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,13 +6,17 @@ jobs: nuget_publish: name: Build, Pack, and Publish NuGet Package runs-on: ubuntu-latest + permissions: + contents: write + packages: write # if: github.event.pull_request.merged == true env: BUILD_CONFIG: "Release" PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" strategy: matrix: - dotnet-version: ["3.1.x", "6.0.x"] + dotnet-version: ["3.1.x", "6.0.x", "8.0.x"] + steps: - name: Checkout code From 7020e3fcf22662106b43697fe06997ec534c6b07 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 19:56:58 +0100 Subject: [PATCH 082/230] Update main.yml - checkot v --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2da4e207da..7540e665cf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,7 +20,9 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup .NET uses: actions/setup-dotnet@v4 From db8fdd338b51521381ae08b4e0e8568b923bb729 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 19:59:09 +0100 Subject: [PATCH 083/230] Update main.yml - matrix v3 remov --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7540e665cf..af64bb05e1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" strategy: matrix: - dotnet-version: ["3.1.x", "6.0.x", "8.0.x"] + dotnet-version: ["6.0.x", "8.0.x"] steps: From d30fa20eafa453d828a547f2feef21ae6e4f8814 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 20:03:33 +0100 Subject: [PATCH 084/230] Update main.yml - gitv dotnet v --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index af64bb05e1..218ed7d956 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" strategy: matrix: - dotnet-version: ["6.0.x", "8.0.x"] + dotnet-version: ["3.1.x", "6.0.x", "8.0.x"] steps: @@ -33,6 +33,7 @@ jobs: uses: gittools/actions/gitversion/setup@v1.1.1 with: versionSpec: '5.x' + dotnet-version: "6.0.x" - name: Run GitVersion id: gitversion From 9d784888a7077cffef14b0fe7b676942f1450a8a Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 20:25:38 +0100 Subject: [PATCH 085/230] Update main.yml - ignore 3.1 --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 218ed7d956..fd260b7531 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,7 +33,8 @@ jobs: uses: gittools/actions/gitversion/setup@v1.1.1 with: versionSpec: '5.x' - dotnet-version: "6.0.x" + dotnet-version: ${{ matrix.dotnet-version }} + ignore: "3.1.x" - name: Run GitVersion id: gitversion From 3f0f53a52950cc60e355b0d6630dcb7d8ae9b7c1 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 20:28:53 +0100 Subject: [PATCH 086/230] Update main.yml - conditional --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fd260b7531..4290f1cad2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,11 +30,10 @@ jobs: dotnet-version: ${{ matrix.dotnet-version }} - name: Install GitVersion + if: matrix.dotnet-version != '3.1.x' uses: gittools/actions/gitversion/setup@v1.1.1 with: versionSpec: '5.x' - dotnet-version: ${{ matrix.dotnet-version }} - ignore: "3.1.x" - name: Run GitVersion id: gitversion From 51ef99a42e3834eb0847baed6e455e4d7740bd37 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 20:31:13 +0100 Subject: [PATCH 087/230] Update main.yml - ingore in run --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4290f1cad2..c5a1a3cd5f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,6 +36,7 @@ jobs: versionSpec: '5.x' - name: Run GitVersion + if: matrix.dotnet-version != '3.1.x' id: gitversion run: gitversion /output json /showvariable SemVer From 1b4afa37d873d89ad2cb4d8fb222b6b1aca623d0 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 20:40:03 +0100 Subject: [PATCH 088/230] Update main.yml - gitversion up --- .github/workflows/main.yml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c5a1a3cd5f..83bd4f98fd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,14 +9,12 @@ jobs: permissions: contents: write packages: write - # if: github.event.pull_request.merged == true env: BUILD_CONFIG: "Release" PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" strategy: matrix: - dotnet-version: ["3.1.x", "6.0.x", "8.0.x"] - + dotnet-version: ["6.0.x", "8.0.x"] steps: - name: Checkout code @@ -24,25 +22,22 @@ jobs: with: fetch-depth: 0 - - name: Setup .NET + - name: Setup .NET SDK uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ matrix.dotnet-version }} - name: Install GitVersion - if: matrix.dotnet-version != '3.1.x' uses: gittools/actions/gitversion/setup@v1.1.1 with: - versionSpec: '5.x' + versionSpec: '6.x' - - name: Run GitVersion - if: matrix.dotnet-version != '3.1.x' + - name: Determine Version id: gitversion - run: gitversion /output json /showvariable SemVer + uses: gittools/actions/gitversion/execute@v1.1.1 - - name: Set version - id: set_version - run: echo "version=${{ steps.gitversion.outputs.SemVer }}" >> $GITHUB_ENV + - name: Display GitVersion outputs + run: echo "Calculated Version:${{ steps.gitversion.outputs.semVer }}" - name: Restore NuGet packages run: dotnet restore ${{ env.PROJECT_PATH }} @@ -51,10 +46,10 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ env.version }} + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ env.version }} - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.PULLREQUEST_TOKEN }} --source "github" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate From 64bc58b952d6f23802aa6111f358ee55919f8bfb Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 20:44:51 +0100 Subject: [PATCH 089/230] Update main.yml - vers --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 83bd4f98fd..aea0dc2cdf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,7 +30,7 @@ jobs: - name: Install GitVersion uses: gittools/actions/gitversion/setup@v1.1.1 with: - versionSpec: '6.x' + versionSpec: '6.0.x' - name: Determine Version id: gitversion From 10164a54e1a765df10f99892682f0a4107f51689 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 20:53:43 +0100 Subject: [PATCH 090/230] Update main.yml - remove v8 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aea0dc2cdf..79cf43fb06 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" strategy: matrix: - dotnet-version: ["6.0.x", "8.0.x"] + dotnet-version: ["6.0.x"] steps: - name: Checkout code From c2c102cd514c77af11e072603d2b509620016a7d Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 21:08:23 +0100 Subject: [PATCH 091/230] Update main.yml - Separate dotnet installations --- .github/workflows/main.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 79cf43fb06..a81b2349d7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" strategy: matrix: - dotnet-version: ["6.0.x"] + dotnet-version: ["6.0.x", "8.0.x"] steps: - name: Checkout code @@ -25,7 +25,7 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v4 with: - dotnet-version: ${{ matrix.dotnet-version }} + dotnet-version: 6.0.x - name: Install GitVersion uses: gittools/actions/gitversion/setup@v1.1.1 @@ -39,6 +39,11 @@ jobs: - name: Display GitVersion outputs run: echo "Calculated Version:${{ steps.gitversion.outputs.semVer }}" + - name: Setup .NET SDK for Building + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Restore NuGet packages run: dotnet restore ${{ env.PROJECT_PATH }} From 41c0553c68bb6b6772a21e36608c9f11ae3022bc Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 21:13:42 +0100 Subject: [PATCH 092/230] Update main.yml - gitversion setup --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a81b2349d7..78e18b6093 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,11 @@ jobs: uses: gittools/actions/gitversion/execute@v1.1.1 - name: Display GitVersion outputs - run: echo "Calculated Version:${{ steps.gitversion.outputs.semVer }}" + run: | + echo "Major: ${{ steps.gitversion.outputs.major }}" + echo "Minor: ${{ steps.gitversion.outputs.minor }}" + echo "Patch: ${{ steps.gitversion.outputs.patch }}" + echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" - name: Setup .NET SDK for Building uses: actions/setup-dotnet@v4 @@ -51,7 +55,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ env.version }} + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 54f87bc88c7406da76802c169265cd491449a90d Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 21:18:09 +0100 Subject: [PATCH 093/230] Update main.yml - gitversion var --- .github/workflows/main.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 78e18b6093..6177ed72cb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,11 +37,7 @@ jobs: uses: gittools/actions/gitversion/execute@v1.1.1 - name: Display GitVersion outputs - run: | - echo "Major: ${{ steps.gitversion.outputs.major }}" - echo "Minor: ${{ steps.gitversion.outputs.minor }}" - echo "Patch: ${{ steps.gitversion.outputs.patch }}" - echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" + run: echo "Calculated Version:${{ steps.gitversion.outputs.semVer }}" - name: Setup .NET SDK for Building uses: actions/setup-dotnet@v4 @@ -55,7 +51,7 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.semVer }} - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 086a726444db54bfef8b43f112f20fc356f3b9b3 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 21:30:33 +0100 Subject: [PATCH 094/230] Update CardViewComponent.cs --- DotnetViewComponents/ViewComponents/CardViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/CardViewComponent.cs b/DotnetViewComponents/ViewComponents/CardViewComponent.cs index 2798b8853e..f3067ec2b9 100644 --- a/DotnetViewComponents/ViewComponents/CardViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/CardViewComponent.cs @@ -19,7 +19,7 @@ public IViewComponentResult Invoke( string? aspAction = null, Dictionary? aspRouteData = null) { - var uno = 199; + var uno = 198; var model = new CardViewModel ( title, From 44f35358c951dbb3246951a3c1d58a1c6bb84007 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 8 Jul 2025 21:44:55 +0100 Subject: [PATCH 095/230] Update main.yml - reorganise variables --- .github/workflows/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6177ed72cb..135b1c5fe4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,7 @@ jobs: env: BUILD_CONFIG: "Release" PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} strategy: matrix: dotnet-version: ["6.0.x", "8.0.x"] @@ -45,16 +46,16 @@ jobs: dotnet-version: 8.0.x - name: Restore NuGet packages - run: dotnet restore ${{ env.PROJECT_PATH }} + run: dotnet restore $PROJECT_PATH - name: Build project - run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore + run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.semVer }} + run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.semVer }} - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key $GITHUB_TOKEN --source "github" --skip-duplicate From adec69614b740ad023f13ce636eaa9241340b868 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 08:08:46 +0100 Subject: [PATCH 096/230] Update main.yml - conditional merge --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 135b1c5fe4..80bedb3575 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,10 +1,12 @@ -name: Pull request +name: Publish NuGet Package -on: push +on: pull_request: + types: [closed] jobs: nuget_publish: name: Build, Pack, and Publish NuGet Package + if: github.event.pull_request.merged == true runs-on: ubuntu-latest permissions: contents: write From 45f39614684c057be0808877c9c948818e5a4ce5 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 08:10:13 +0100 Subject: [PATCH 097/230] Update main.yml - correct typo --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80bedb3575..ad4f8e4025 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,8 @@ name: Publish NuGet Package -on: pull_request: - types: [closed] +on: + pull_request: + types: [closed] jobs: nuget_publish: From 2864668525e174b2e51c53a63c8da0d776947824 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 08:12:18 +0100 Subject: [PATCH 098/230] Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index bb7c0f38b7..7513272556 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -18,7 +18,7 @@ public IViewComponentResult Invoke( bool preventDoubleClick = false) { var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); - + var numer = 1; return View(model); } } From 982dfdbfbc1429aa2470c08d15faeeef9748a5f0 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 08:19:28 +0100 Subject: [PATCH 099/230] Update main.yml - simplify call --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ad4f8e4025..8bd6e580b7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,6 @@ name: Publish NuGet Package -on: - pull_request: - types: [closed] +on: pull_request jobs: nuget_publish: From 9b4a39859e0fabd36b59d4307793f4ac5e32c65d Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 08:20:28 +0100 Subject: [PATCH 100/230] Update ButtonViewComponent.cs - lett --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 7513272556..1637eb4b37 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -18,7 +18,8 @@ public IViewComponentResult Invoke( bool preventDoubleClick = false) { var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); - var numer = 1; + var numer = 132; + var f = "rer"; return View(model); } } From abc56f74dd65b5c597d768a25a07075ea09dcf52 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 08:27:08 +0100 Subject: [PATCH 101/230] Create publish_package.yml --- .github/workflows/publish_package.yml | 64 +++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/publish_package.yml diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml new file mode 100644 index 0000000000..21cb5e0524 --- /dev/null +++ b/.github/workflows/publish_package.yml @@ -0,0 +1,64 @@ +name: Publish NuGet Package + +on: + pull_request: + types: [closed] + +jobs: + nuget_publish: + name: Build, Pack, and Publish NuGet Package + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + permissions: + contents: write + packages: write + env: + BUILD_CONFIG: "Release" + PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + strategy: + matrix: + dotnet-version: ["6.0.x", "8.0.x"] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 6.0.x + + - name: Install GitVersion + uses: gittools/actions/gitversion/setup@v1.1.1 + with: + versionSpec: '6.0.x' + + - name: Determine Version + id: gitversion + uses: gittools/actions/gitversion/execute@v1.1.1 + + - name: Display GitVersion outputs + run: echo "Calculated Version:${{ steps.gitversion.outputs.semVer }}" + + - name: Setup .NET SDK for Building + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Restore NuGet packages + run: dotnet restore $PROJECT_PATH + + - name: Build project + run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore + + - name: Pack NuGet package + run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.semVer }} + + - name: Add GitHub NuGet source + run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + + - name: Publish NuGet package to GitHub Packages + run: dotnet nuget push out/*.nupkg --api-key $GITHUB_TOKEN --source "github" --skip-duplicate From c6418895f30ee3dad7d7d5c5436328df5e9e0af0 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 08:27:57 +0100 Subject: [PATCH 102/230] Update ButtonViewComponent.cs - nu num --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 1637eb4b37..79e888b189 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -18,7 +18,7 @@ public IViewComponentResult Invoke( bool preventDoubleClick = false) { var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); - var numer = 132; + var numer = 1222; var f = "rer"; return View(model); } From 6607e49f20c11ef52f406087b2540d27249df407 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:09:09 +0100 Subject: [PATCH 103/230] Update publish_package.yml - add npm --- .github/workflows/publish_package.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 21cb5e0524..f0377b2484 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -62,3 +62,24 @@ jobs: - name: Publish NuGet package to GitHub Packages run: dotnet nuget push out/*.nupkg --api-key $GITHUB_TOKEN --source "github" --skip-duplicate + + npm_publish: + name: Build and Publish npm Package + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + registry-url: 'https://npm.pkg.github.com/' + + - name: Install dependencies + run: npm ci + + - name: Publish npm package to GitHub Packages + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 85bcd513606cfad023826eada58e11eff541d218 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:09:32 +0100 Subject: [PATCH 104/230] Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 79e888b189..9545344b50 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -20,6 +20,7 @@ public IViewComponentResult Invoke( var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); var numer = 1222; var f = "rer"; + var di = "ciao"; return View(model); } } From aae351346ad40a438ee8c9668e80f06f973de330 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:14:35 +0100 Subject: [PATCH 105/230] Update .npmrc - add owner --- .npmrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.npmrc b/.npmrc index 4fd021952d..715c127d59 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ -engine-strict=true \ No newline at end of file +engine-strict=true +@TechnologyEnhancedLearning:registry=https://npm.pkg.github.com From 3d4d11b8baa42b35f45135c3cdc97677db5beab4 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:15:43 +0100 Subject: [PATCH 106/230] Update package.json - add publish key --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 4a877a1306..3d4157a63d 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ }, "publishConfig": { "access": "public" + "registry": "https://npm.pkg.github.com/" }, "eslintConfig": { "extends": "./tests/linters/.eslintrc.js" From edf2172710ce5ffbfd475e9d2a0163f174901c7c Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:16:16 +0100 Subject: [PATCH 107/230] Update publish_package.yml - change to push --- .github/workflows/publish_package.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index f0377b2484..95f796dee7 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -1,13 +1,11 @@ name: Publish NuGet Package -on: - pull_request: - types: [closed] +on: push jobs: nuget_publish: name: Build, Pack, and Publish NuGet Package - if: github.event.pull_request.merged == true + # if: github.event.pull_request.merged == true runs-on: ubuntu-latest permissions: contents: write From e2cb5dc72e90d064383afda0e9c3635d02c8b384 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:16:38 +0100 Subject: [PATCH 108/230] Update ButtonViewComponent.cs - 44 --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 9545344b50..e213d4bda8 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -19,7 +19,7 @@ public IViewComponentResult Invoke( { var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); var numer = 1222; - var f = "rer"; + var f = "re44"; var di = "ciao"; return View(model); } From 9e90699662bee55a3bdc5c108b934ec58190cf91 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:17:57 +0100 Subject: [PATCH 109/230] Update package.json - remove registry --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 3d4157a63d..4a877a1306 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,6 @@ }, "publishConfig": { "access": "public" - "registry": "https://npm.pkg.github.com/" }, "eslintConfig": { "extends": "./tests/linters/.eslintrc.js" From a382a08d9d1e17d43f28eed8738c665177e57c5c Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:24:35 +0100 Subject: [PATCH 110/230] Update .npmrc --- .npmrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.npmrc b/.npmrc index 715c127d59..fb6380fb6e 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ -engine-strict=true @TechnologyEnhancedLearning:registry=https://npm.pkg.github.com +//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} +engine-strict=true From db7d9e6669756bbb2ca80118eb21af2e1144545f Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:25:07 +0100 Subject: [PATCH 111/230] Update package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 4a877a1306..fd3499e0c8 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,7 @@ "webpack-stream": "^7.0.0" }, "publishConfig": { + "registry": "https://npm.pkg.github.com/", "access": "public" }, "eslintConfig": { From 69f667572726097037cb734d295ffca432f2324a Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:26:26 +0100 Subject: [PATCH 112/230] Update publish_package.yml --- .github/workflows/publish_package.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 95f796dee7..8612ace01c 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -77,6 +77,9 @@ jobs: - name: Install dependencies run: npm ci + - name: Build package + run: npm run build + - name: Publish npm package to GitHub Packages run: npm publish env: From 527eb3f4ddba50b2d9b08ac4cd8825e0de4f1798 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:33:33 +0100 Subject: [PATCH 113/230] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fd3499e0c8..139eb55563 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "nhse-tel-frontend", + "name": "@TechnologyEnhancedLearning/nhse-tel-frontend", "version": "0.0.2", "description": "NHS England TEL frontend contains the code you need to start building user interfaces for NHS websites and services.", "engines": { From 80dd304d57be62ff7d30da08df322f9cf1b9d0cd Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:38:23 +0100 Subject: [PATCH 114/230] Update publish_package.yml - token --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 8612ace01c..87cb01c4cd 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -83,4 +83,4 @@ jobs: - name: Publish npm package to GitHub Packages run: npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.PULLREQUEST_TOKEN }} From 32266e1af6d4decf47c7cdede7cb819682ee3c08 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:09:35 +0100 Subject: [PATCH 115/230] Update publish_package.yml - remove npm --- .github/workflows/publish_package.yml | 32 +++++---------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 87cb01c4cd..5742a2e5c4 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -39,7 +39,11 @@ jobs: uses: gittools/actions/gitversion/execute@v1.1.1 - name: Display GitVersion outputs - run: echo "Calculated Version:${{ steps.gitversion.outputs.semVer }}" + run: | + echo "Major: ${{ steps.gitversion.outputs.major }}" + echo "Minor: ${{ steps.gitversion.outputs.minor }}" + echo "Patch: ${{ steps.gitversion.outputs.patch }}" + echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" - name: Setup .NET SDK for Building uses: actions/setup-dotnet@v4 @@ -53,34 +57,10 @@ jobs: run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore - name: Pack NuGet package - run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.semVer }} + run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages run: dotnet nuget push out/*.nupkg --api-key $GITHUB_TOKEN --source "github" --skip-duplicate - - npm_publish: - name: Build and Publish npm Package - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - registry-url: 'https://npm.pkg.github.com/' - - - name: Install dependencies - run: npm ci - - - name: Build package - run: npm run build - - - name: Publish npm package to GitHub Packages - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.PULLREQUEST_TOKEN }} From f68f0b60d1158b784032b6b052b816727aae05cd Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:18:40 +0100 Subject: [PATCH 116/230] Update publish_package.yml - version --- .github/workflows/publish_package.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 5742a2e5c4..fe23b48edc 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -45,6 +45,15 @@ jobs: echo "Patch: ${{ steps.gitversion.outputs.patch }}" echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" + - name: Use version in another step + run: | + VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" + echo "The version is $VERSION" + + - name: Debug GitVersion outputs test + run: | + echo "All outputs: ${{ toJson(steps.gitversion.outputs) }}" + - name: Setup .NET SDK for Building uses: actions/setup-dotnet@v4 with: @@ -57,7 +66,7 @@ jobs: run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore - name: Pack NuGet package - run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} + run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=$VERSION - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 8841b455c9ee5ada0e2cfdebaa8d7c7611cb7e32 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:37:58 +0100 Subject: [PATCH 117/230] Update publish_package.yml - in quote --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index fe23b48edc..e9e0bd1dea 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -66,7 +66,7 @@ jobs: run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore - name: Pack NuGet package - run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=$VERSION + run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion="$VERSION" - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 5c788f0840d3ebd0608fda83f8e2c3e133734848 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:43:35 +0100 Subject: [PATCH 118/230] Update publish_package.yml - pass to env --- .github/workflows/publish_package.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index e9e0bd1dea..1155c4077a 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -48,7 +48,10 @@ jobs: - name: Use version in another step run: | VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" - echo "The version is $VERSION" + id: set_version + run: | + VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" + echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Debug GitVersion outputs test run: | From f96ebb9220187b6ee2eacfdef7eefab6fda01325 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:50:47 +0100 Subject: [PATCH 119/230] Update publish_package.yml - remove i --- .github/workflows/publish_package.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 1155c4077a..51779fb815 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -48,7 +48,6 @@ jobs: - name: Use version in another step run: | VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" - id: set_version run: | VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" echo "VERSION=$VERSION" >> $GITHUB_ENV From b89cd57eaf78f05769176938153ae2dc76fc6210 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:53:58 +0100 Subject: [PATCH 120/230] Update publish_package.yml - update token --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 51779fb815..165f2ae739 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -74,4 +74,4 @@ jobs: run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key $GITHUB_TOKEN --source "github" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key $PULLREQUEST_TOKEN --source "github" --skip-duplicate From efa1cf557dcac1729518e331fb69244f0eeb6a4f Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:55:43 +0100 Subject: [PATCH 121/230] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 139eb55563..fd3499e0c8 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@TechnologyEnhancedLearning/nhse-tel-frontend", + "name": "nhse-tel-frontend", "version": "0.0.2", "description": "NHS England TEL frontend contains the code you need to start building user interfaces for NHS websites and services.", "engines": { From 978ef064992ff9cbf006a907144fd0dad69cb0b4 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:55:59 +0100 Subject: [PATCH 122/230] Update package.json --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index fd3499e0c8..4a877a1306 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,6 @@ "webpack-stream": "^7.0.0" }, "publishConfig": { - "registry": "https://npm.pkg.github.com/", "access": "public" }, "eslintConfig": { From 46f5c9a14293bec188a00b934899a741bf92f141 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:56:18 +0100 Subject: [PATCH 123/230] Update .npmrc --- .npmrc | 2 -- 1 file changed, 2 deletions(-) diff --git a/.npmrc b/.npmrc index fb6380fb6e..b6f27f1359 100644 --- a/.npmrc +++ b/.npmrc @@ -1,3 +1 @@ -@TechnologyEnhancedLearning:registry=https://npm.pkg.github.com -//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} engine-strict=true From 644ab617ceaafab7b78a12f00f2b71ac114461cb Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:58:16 +0100 Subject: [PATCH 124/230] Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index e213d4bda8..4f9522e5ae 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -18,7 +18,7 @@ public IViewComponentResult Invoke( bool preventDoubleClick = false) { var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); - var numer = 1222; + var numer = 1252; var f = "re44"; var di = "ciao"; return View(model); From bab3bb24ff3ce6cc9ab7a4f4ba4b6b0f6b0291be Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 13:08:21 +0100 Subject: [PATCH 125/230] Update publish_package.yml - correct --- .github/workflows/publish_package.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 165f2ae739..da8a59fef1 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -43,7 +43,6 @@ jobs: echo "Major: ${{ steps.gitversion.outputs.major }}" echo "Minor: ${{ steps.gitversion.outputs.minor }}" echo "Patch: ${{ steps.gitversion.outputs.patch }}" - echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" - name: Use version in another step run: | @@ -74,4 +73,4 @@ jobs: run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key $PULLREQUEST_TOKEN --source "github" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key $GITHUB_TOKEN --source "github" --skip-duplicate From 21e16181895cf350068a191ea8d8700f3e7cf251 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 13:12:02 +0100 Subject: [PATCH 126/230] Update publish_package.yml - version refct --- .github/workflows/publish_package.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index da8a59fef1..596780e309 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -47,9 +47,6 @@ jobs: - name: Use version in another step run: | VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" - run: | - VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" - echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Debug GitVersion outputs test run: | @@ -67,7 +64,7 @@ jobs: run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore - name: Pack NuGet package - run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion="$VERSION" + run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From d282410bfadeb8f90b9fdb7325f2352c53c02ad9 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 13:15:19 +0100 Subject: [PATCH 127/230] Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 4f9522e5ae..870b3cdfec 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -18,7 +18,7 @@ public IViewComponentResult Invoke( bool preventDoubleClick = false) { var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); - var numer = 1252; + var numer = 1257; var f = "re44"; var di = "ciao"; return View(model); From b7c5e281e18a08c100f3afeeddabe320608830c9 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 9 Jul 2025 13:21:44 +0100 Subject: [PATCH 128/230] Update publish_package.yml - vers --- .github/workflows/publish_package.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 596780e309..481ea4814b 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -47,7 +47,8 @@ jobs: - name: Use version in another step run: | VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" - + echo "VERSION=$VERSION" >> $GITHUB_ENV + - name: Debug GitVersion outputs test run: | echo "All outputs: ${{ toJson(steps.gitversion.outputs) }}" @@ -64,7 +65,7 @@ jobs: run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore - name: Pack NuGet package - run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" + run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=$VERSION - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From da7ac91ff687e638144312e0b61dd904c2f13f05 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 18 Jul 2025 13:58:46 +0100 Subject: [PATCH 129/230] Update ContentsListViewComponent.cs +semver: minor --- DotnetViewComponents/ViewComponents/ContentsListViewComponent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DotnetViewComponents/ViewComponents/ContentsListViewComponent.cs b/DotnetViewComponents/ViewComponents/ContentsListViewComponent.cs index ffb5698188..6ead82f5f1 100644 --- a/DotnetViewComponents/ViewComponents/ContentsListViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ContentsListViewComponent.cs @@ -14,6 +14,7 @@ public IViewComponentResult Invoke( IEnumerable listItems) { var model = new ContentsListViewModel(name, listItems); + var min = "assume!"; return View(model); } From 8c934a53ad7e5a7c29ee99633bb77db370db48e4 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 18 Jul 2025 14:01:34 +0100 Subject: [PATCH 130/230] Add new feature X +semver: feature --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 870b3cdfec..2c5ce92aeb 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,6 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re44"; var di = "ciao"; + var anoth = "qwe"; return View(model); } } From 855bca365c73afafb148982af3bda6e55bdbf484 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 18 Jul 2025 14:12:46 +0100 Subject: [PATCH 131/230] Fix minor bug in logic +semver: fix --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 481ea4814b..097d50e247 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -1,6 +1,6 @@ name: Publish NuGet Package -on: push +on: [push, pull_request] jobs: nuget_publish: From 1a9724965f4f2a7a7f40a75d9a851803a81f76ed Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 18 Jul 2025 14:59:10 +0100 Subject: [PATCH 132/230] Implement additional API endpoint +semver: minor --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 2c5ce92aeb..09f26cedd3 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re44"; var di = "ciao"; - var anoth = "qwe"; + var anoth = "minor"; return View(model); } } From e9f819c834455cf112e2cf03b83a2a992591574e Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 18 Jul 2025 15:21:45 +0100 Subject: [PATCH 133/230] Create GitVersion.yml --- GitVersion.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 GitVersion.yml diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 0000000000..1fe3e1ec93 --- /dev/null +++ b/GitVersion.yml @@ -0,0 +1,8 @@ +mode: Mainline +commit-message-incrementing: Enabled +major-version-bump-message: '\+semver:\s?(breaking|major)' +minor-version-bump-message: '\+semver:\s?(feature|minor)' +patch-version-bump-message: '\+semver:\s?(fix|patch)' +branches: + main: + increment: Inherit From 9f3aa504c23907d26acb0543648175a9f9823c7c Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 18 Jul 2025 15:22:29 +0100 Subject: [PATCH 134/230] Correct typo in docs +semver: patch --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 09f26cedd3..8abe521f81 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re44"; var di = "ciao"; - var anoth = "minor"; + var anoth = "minor v2"; return View(model); } } From 6fb9257e35ab12654d5845acac78174304c0148c Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 11:54:43 +0100 Subject: [PATCH 135/230] Update GitVersion.yml --- GitVersion.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/GitVersion.yml b/GitVersion.yml index 1fe3e1ec93..dd222cf7cb 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -5,4 +5,5 @@ minor-version-bump-message: '\+semver:\s?(feature|minor)' patch-version-bump-message: '\+semver:\s?(fix|patch)' branches: main: + regex: ^main$ increment: Inherit From 518a5fe2718b3d4cffd7de715deb997eba308418 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 11:59:45 +0100 Subject: [PATCH 136/230] Update GitVersion.yml --- GitVersion.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index dd222cf7cb..d4220480b5 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,9 +1,10 @@ mode: Mainline -commit-message-incrementing: Enabled -major-version-bump-message: '\+semver:\s?(breaking|major)' -minor-version-bump-message: '\+semver:\s?(feature|minor)' -patch-version-bump-message: '\+semver:\s?(fix|patch)' branches: main: regex: ^main$ increment: Inherit +tag-pre-release-weight: 60000 +commit-message-incrementing: Enabled +major-version-bump-message: '\+semver:\s?(breaking|major)' +minor-version-bump-message: '\+semver:\s?(feature|minor)' +patch-version-bump-message: '\+semver:\s?(fix|patch)' From de7bac5a387d7f23d4092bdf309fa7bd45e2bb27 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 12:37:18 +0100 Subject: [PATCH 137/230] clear main.yml --- .github/workflows/main.yml | 61 -------------------------------------- 1 file changed, 61 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8bd6e580b7..8b13789179 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,62 +1 @@ -name: Publish NuGet Package -on: pull_request - -jobs: - nuget_publish: - name: Build, Pack, and Publish NuGet Package - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - permissions: - contents: write - packages: write - env: - BUILD_CONFIG: "Release" - PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - strategy: - matrix: - dotnet-version: ["6.0.x", "8.0.x"] - - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup .NET SDK - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 6.0.x - - - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v1.1.1 - with: - versionSpec: '6.0.x' - - - name: Determine Version - id: gitversion - uses: gittools/actions/gitversion/execute@v1.1.1 - - - name: Display GitVersion outputs - run: echo "Calculated Version:${{ steps.gitversion.outputs.semVer }}" - - - name: Setup .NET SDK for Building - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Restore NuGet packages - run: dotnet restore $PROJECT_PATH - - - name: Build project - run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore - - - name: Pack NuGet package - run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.semVer }} - - - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - - - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key $GITHUB_TOKEN --source "github" --skip-duplicate From b1da0baf2f36aaf8ed5735d8fcc768ed7db352dd Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 12:54:39 +0100 Subject: [PATCH 138/230] Update publish_package.yml gitversion --- .github/workflows/publish_package.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 097d50e247..71439fb892 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -30,13 +30,13 @@ jobs: dotnet-version: 6.0.x - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v1.1.1 + uses: gittools/actions/gitversion/setup@v1.1.2 with: - versionSpec: '6.0.x' + versionSpec: '6.3.0' - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v1.1.1 + uses: gittools/actions/gitversion/execute@v1.1.2 - name: Display GitVersion outputs run: | From eb4c211454e4121440e578b11cb64025f405e5bd Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 12:56:04 +0100 Subject: [PATCH 139/230] Update publish_package.yml v1.1.1 --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 71439fb892..080a05295a 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -36,7 +36,7 @@ jobs: - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v1.1.2 + uses: gittools/actions/gitversion/execute@v1.1.1 - name: Display GitVersion outputs run: | From 95152cc3971a3519d2b375c289a93a770a089a33 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 12:58:07 +0100 Subject: [PATCH 140/230] Update publish_package.yml gitversion to 321 --- .github/workflows/publish_package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 080a05295a..7a530a94a8 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -30,13 +30,13 @@ jobs: dotnet-version: 6.0.x - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v1.1.2 + uses: gittools/actions/gitversion/setup@v3.2.1 with: versionSpec: '6.3.0' - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v1.1.1 + uses: gittools/actions/gitversion/execute@v3.2.1 - name: Display GitVersion outputs run: | From ebcbcf1252868be1374f489956472d644703c185 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:33:56 +0100 Subject: [PATCH 141/230] Update publish_package.yml back to 111 --- .github/workflows/publish_package.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 7a530a94a8..b66bcc3a7b 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -29,14 +29,17 @@ jobs: with: dotnet-version: 6.0.x + - name: Ensure NuGet source + run: dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org --store-password-in-clear-text || true + - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v3.2.1 + uses: gittools/actions/gitversion/setup@v1.1.1 with: versionSpec: '6.3.0' - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v3.2.1 + uses: gittools/actions/gitversion/execute@v1.1.1 - name: Display GitVersion outputs run: | From c2e4d059bbcc98478eaa9b7c2f08267b988f0548 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:35:46 +0100 Subject: [PATCH 142/230] Update publish_package.yml to 610 --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index b66bcc3a7b..ff206e0d04 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -35,7 +35,7 @@ jobs: - name: Install GitVersion uses: gittools/actions/gitversion/setup@v1.1.1 with: - versionSpec: '6.3.0' + versionSpec: '6.1.0' - name: Determine Version id: gitversion From b3a6ac822ec2132f3a663b89b3b64073a04cdc51 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:36:59 +0100 Subject: [PATCH 143/230] Update publish_package.yml to 60x --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index ff206e0d04..a795da5882 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -35,7 +35,7 @@ jobs: - name: Install GitVersion uses: gittools/actions/gitversion/setup@v1.1.1 with: - versionSpec: '6.1.0' + versionSpec: '6.0.x' - name: Determine Version id: gitversion From 7d26f6309a216df3d4463546a5f6273288cca0d8 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:41:06 +0100 Subject: [PATCH 144/230] Update GitVersion.yml --- GitVersion.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/GitVersion.yml b/GitVersion.yml index d4220480b5..3ca734d675 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -3,7 +3,6 @@ branches: main: regex: ^main$ increment: Inherit -tag-pre-release-weight: 60000 commit-message-incrementing: Enabled major-version-bump-message: '\+semver:\s?(breaking|major)' minor-version-bump-message: '\+semver:\s?(feature|minor)' From 8d048fba40545cc47235ebc0e000ea84da5e58ee Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:43:47 +0100 Subject: [PATCH 145/230] Update publish_package.yml w cat gitversion --- .github/workflows/publish_package.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index a795da5882..a13ab35c23 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -37,6 +37,9 @@ jobs: with: versionSpec: '6.0.x' + - name: Print GitVersion.yml + run: cat GitVersion.yml + - name: Determine Version id: gitversion uses: gittools/actions/gitversion/execute@v1.1.1 From 3f1c477a9956f90c4f4d74be61d1d7f95a8237d0 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:55:00 +0100 Subject: [PATCH 146/230] Update publish_package.yml try 321 --- .github/workflows/publish_package.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index a13ab35c23..0e2cbb71e4 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -33,16 +33,16 @@ jobs: run: dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org --store-password-in-clear-text || true - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v1.1.1 + uses: gittools/actions/gitversion/setup@v3.2.1 with: versionSpec: '6.0.x' - - - name: Print GitVersion.yml - run: cat GitVersion.yml - + - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v1.1.1 + uses: gittools/actions/gitversion/execute@v3.2.1 + with: + additionalArguments: '/verbosity diag' + - name: Display GitVersion outputs run: | From 18430b673e15a9dba0efc4070558f7d7b95fe120 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:59:43 +0100 Subject: [PATCH 147/230] Update publish_package.yml --- .github/workflows/publish_package.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 0e2cbb71e4..b11dca5451 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -41,7 +41,10 @@ jobs: id: gitversion uses: gittools/actions/gitversion/execute@v3.2.1 with: - additionalArguments: '/verbosity diag' + useConfigFile: true + configFilePath: GitVersion.yml # adjust path if not in root + # Remove additionalArguments! + - name: Display GitVersion outputs From 74817d96d7927b524d38e0a206b62f99649fad16 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 14:36:26 +0100 Subject: [PATCH 148/230] Update GitVersion.yml --- GitVersion.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index 3ca734d675..891823c4a6 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,9 +1,8 @@ -mode: Mainline +mode: ContinuousDeployment branches: main: - regex: ^main$ - increment: Inherit -commit-message-incrementing: Enabled -major-version-bump-message: '\+semver:\s?(breaking|major)' -minor-version-bump-message: '\+semver:\s?(feature|minor)' -patch-version-bump-message: '\+semver:\s?(fix|patch)' + tag: '' + increment: Patch + develop: + tag: 'beta' + increment: Minor From 34d9a6f237f3ea67882ac63372dd4d649b7d9b0f Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 14:37:17 +0100 Subject: [PATCH 149/230] Update publish_package.yml --- .github/workflows/publish_package.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index b11dca5451..63d5f419c3 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -42,8 +42,9 @@ jobs: uses: gittools/actions/gitversion/execute@v3.2.1 with: useConfigFile: true - configFilePath: GitVersion.yml # adjust path if not in root - # Remove additionalArguments! + configFilePath: GitVersion.yml + additionalArguments: '--verbosity debug' + From 35b0afbded9a54708fd280cf02c70c858948e481 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 14:42:01 +0100 Subject: [PATCH 150/230] Update publish_package.yml gitv v401 --- .github/workflows/publish_package.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 63d5f419c3..7938bcea7a 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -27,19 +27,19 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v4 with: - dotnet-version: 6.0.x + dotnet-version: 6.3.x - name: Ensure NuGet source run: dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org --store-password-in-clear-text || true - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v3.2.1 + uses: gittools/actions/gitversion/setup@v4.0.1 with: - versionSpec: '6.0.x' + versionSpec: '6.3.x' - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v3.2.1 + uses: gittools/actions/gitversion/execute@v4.0.1 with: useConfigFile: true configFilePath: GitVersion.yml From 77d49b867cb25e774d4f0c38e6505bbaeec339eb Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 15:02:42 +0100 Subject: [PATCH 151/230] Update publish_package.yml gitversion 630 --- .github/workflows/publish_package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 7938bcea7a..94eed3c72f 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -33,13 +33,13 @@ jobs: run: dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org --store-password-in-clear-text || true - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v4.0.1 + uses: gittools/actions/gitversion/setup@v6.3.0 with: versionSpec: '6.3.x' - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v4.0.1 + uses: gittools/actions/gitversion/execute@v6.3.0 with: useConfigFile: true configFilePath: GitVersion.yml From 4746191ac68c289c649595ed97924e23b50dcfb3 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 15:16:43 +0100 Subject: [PATCH 152/230] Update publish_package.yml rewrite gitversion --- .github/workflows/publish_package.yml | 43 +++++++-------------------- 1 file changed, 10 insertions(+), 33 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 94eed3c72f..10c5d55d5e 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -24,49 +24,26 @@ jobs: with: fetch-depth: 0 - - name: Setup .NET SDK - uses: actions/setup-dotnet@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.3.x - - - name: Ensure NuGet source - run: dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org --store-password-in-clear-text || true + dotnet-version: '8.0.x' # Specify your target .NET version - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v6.3.0 + uses: gittools/actions/gitversion/setup@v3.2.1 with: - versionSpec: '6.3.x' - + versionSpec: '6.3.0' + - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v6.3.0 + uses: gittools/actions/gitversion/execute@v3.2.1 with: useConfigFile: true - configFilePath: GitVersion.yml - additionalArguments: '--verbosity debug' - - - - - name: Display GitVersion outputs + - name: Display versioning outputs run: | - echo "Major: ${{ steps.gitversion.outputs.major }}" - echo "Minor: ${{ steps.gitversion.outputs.minor }}" - echo "Patch: ${{ steps.gitversion.outputs.patch }}" - - - name: Use version in another step - run: | - VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" - echo "VERSION=$VERSION" >> $GITHUB_ENV - - - name: Debug GitVersion outputs test - run: | - echo "All outputs: ${{ toJson(steps.gitversion.outputs) }}" - - - name: Setup .NET SDK for Building - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x + echo "NuGet Version: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" + echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" - name: Restore NuGet packages run: dotnet restore $PROJECT_PATH From 7fdf4e63a5e2ecf57548856b240eed6e33ec3e90 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 15:22:35 +0100 Subject: [PATCH 153/230] Update publish_package.yml down to 320 --- .github/workflows/publish_package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 10c5d55d5e..6b09b07175 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -30,13 +30,13 @@ jobs: dotnet-version: '8.0.x' # Specify your target .NET version - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v3.2.1 + uses: gittools/actions/gitversion/setup@v3.2.0 with: versionSpec: '6.3.0' - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v3.2.1 + uses: gittools/actions/gitversion/execute@v3.2.0 with: useConfigFile: true From 9a09ff0ffee0ee1c0f5c074a33f75a6e92aa658b Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 15:39:01 +0100 Subject: [PATCH 154/230] Update publish_package.yml gversion --- .github/workflows/publish_package.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 6b09b07175..530cc9c0c0 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -14,9 +14,6 @@ jobs: BUILD_CONFIG: "Release" PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - strategy: - matrix: - dotnet-version: ["6.0.x", "8.0.x"] steps: - name: Checkout code @@ -30,15 +27,13 @@ jobs: dotnet-version: '8.0.x' # Specify your target .NET version - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v3.2.0 + uses: gittools/actions/gitversion/setup@0.9.17 with: versionSpec: '6.3.0' - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v3.2.0 - with: - useConfigFile: true + uses: gittools/actions/gitversion/execute@v0.9.17 - name: Display versioning outputs run: | @@ -52,7 +47,7 @@ jobs: run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore - name: Pack NuGet package - run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=$VERSION + run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 06cb858bd24e6c4e069409964c6e47d8a2eb8aca Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 21 Jul 2025 15:40:08 +0100 Subject: [PATCH 155/230] Update publish_package.yml gitversion 111 --- .github/workflows/publish_package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 530cc9c0c0..e3716e725a 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -27,13 +27,13 @@ jobs: dotnet-version: '8.0.x' # Specify your target .NET version - name: Install GitVersion - uses: gittools/actions/gitversion/setup@0.9.17 + uses: gittools/actions/gitversion/setup@1.1.1 with: versionSpec: '6.3.0' - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.17 + uses: gittools/actions/gitversion/execute@v1.1.1 - name: Display versioning outputs run: | From 75e989298f38a1ba1fafa6244a52ac06000cd49a Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 14:23:12 +0100 Subject: [PATCH 156/230] Update GitVersion.yml clear --- GitVersion.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index 891823c4a6..8b13789179 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,8 +1 @@ -mode: ContinuousDeployment -branches: - main: - tag: '' - increment: Patch - develop: - tag: 'beta' - increment: Minor + From 84af3b2102d7742eb902b3051c1164087397000f Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 14:27:06 +0100 Subject: [PATCH 157/230] Update publish_package.yml 1.1.1 --- .github/workflows/publish_package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index e3716e725a..3cb52e7f36 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -27,9 +27,9 @@ jobs: dotnet-version: '8.0.x' # Specify your target .NET version - name: Install GitVersion - uses: gittools/actions/gitversion/setup@1.1.1 + uses: gittools/actions/gitversion/setup@v1.1.1 with: - versionSpec: '6.3.0' + versionSpec: '6.0.x' - name: Determine Version id: gitversion From ef6d87bb36a77d1858bc58b39f0ea5e2291dbbe3 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 14:29:33 +0100 Subject: [PATCH 158/230] Update publish_package.yml v401 --- .github/workflows/publish_package.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 3cb52e7f36..5435f1528a 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -27,13 +27,13 @@ jobs: dotnet-version: '8.0.x' # Specify your target .NET version - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v1.1.1 + uses: gittools/actions/gitversion/setup@v4.0.1 with: - versionSpec: '6.0.x' + versionSpec: '6.3.x' - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v1.1.1 + uses: gittools/actions/gitversion/execute@v4.0.1 - name: Display versioning outputs run: | From cad73ffe06dd2a9487724781c4cc596cbcc8f7e8 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 14:58:54 +0100 Subject: [PATCH 159/230] Update publish_package.yml version --- .github/workflows/publish_package.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 5435f1528a..4ff6442989 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -40,6 +40,11 @@ jobs: echo "NuGet Version: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" + - name: Use version in another step + run: | + VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" + echo "VERSION=$VERSION" >> $GITHUB_ENV + - name: Restore NuGet packages run: dotnet restore $PROJECT_PATH @@ -47,7 +52,7 @@ jobs: run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore - name: Pack NuGet package - run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} + run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=$VERSION - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 04def4684a83011613d6200f54a399ddb0267182 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:10:12 +0100 Subject: [PATCH 160/230] Implement additional API endpoint +semver: minor --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 8abe521f81..a5ae33f78d 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re44"; var di = "ciao"; - var anoth = "minor v2"; + var anoth = "MINOR 1"; return View(model); } } From 9c70755e6e802b97c3a96f34950e1a69f7075310 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:12:05 +0100 Subject: [PATCH 161/230] Add breaking API change +semver: breaking --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index a5ae33f78d..318ad51cd5 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re44"; var di = "ciao"; - var anoth = "MINOR 1"; + var anoth = "MAJOR 1"; return View(model); } } From f33a4bc901b79b5f605750d8bb03b208fa6e23a6 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:14:18 +0100 Subject: [PATCH 162/230] Update GitVersion.yml re-set --- GitVersion.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/GitVersion.yml b/GitVersion.yml index 8b13789179..891823c4a6 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1 +1,8 @@ - +mode: ContinuousDeployment +branches: + main: + tag: '' + increment: Patch + develop: + tag: 'beta' + increment: Minor From 7b22a06fac62bfee172375f321462cbaee6a683a Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:16:59 +0100 Subject: [PATCH 163/230] Update GitVersion.yml --- GitVersion.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index 891823c4a6..3ca734d675 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,8 +1,9 @@ -mode: ContinuousDeployment +mode: Mainline branches: main: - tag: '' - increment: Patch - develop: - tag: 'beta' - increment: Minor + regex: ^main$ + increment: Inherit +commit-message-incrementing: Enabled +major-version-bump-message: '\+semver:\s?(breaking|major)' +minor-version-bump-message: '\+semver:\s?(feature|minor)' +patch-version-bump-message: '\+semver:\s?(fix|patch)' From 72fc9d6282b514320c4d1b98c6032203e0377792 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:21:35 +0100 Subject: [PATCH 164/230] Update GitVersion.yml incremement patcjh --- GitVersion.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index 3ca734d675..0c1db56e08 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,9 +1,6 @@ mode: Mainline branches: main: - regex: ^main$ - increment: Inherit -commit-message-incrementing: Enabled -major-version-bump-message: '\+semver:\s?(breaking|major)' -minor-version-bump-message: '\+semver:\s?(feature|minor)' -patch-version-bump-message: '\+semver:\s?(fix|patch)' + increment: Patch + is-mainline: true + track-merge-target: false From 1ac3dd9377c24a15c3abd3997daf598b19180cda Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:39:59 +0100 Subject: [PATCH 165/230] Update GitVersion.yml trunk semantics --- GitVersion.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index 0c1db56e08..1a4f605887 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,6 +1,51 @@ -mode: Mainline +workflow: TrunkBased/preview1 + branches: main: + regex: ^main$|^master$ increment: Patch - is-mainline: true + prevent-increment-of-merged-branch-version: true + is-mainline: true # Note: If you get an error on this line, remove it as it might be deprecated + track-merge-target: false + label: '' + pre-release-weight: 55000 + + feature: + regex: ^features?[/-] + increment: Inherit + prevent-increment-of-merged-branch-version: true + track-merge-target: true + label: 'alpha' + pre-release-weight: 30000 + + release: + regex: ^releases?[/-] + increment: Patch + prevent-increment-of-merged-branch-version: true + label: 'beta' + pre-release-weight: 25000 + is-release-branch: true + + hotfix: + regex: ^hotfix(es)?[/-] + increment: Patch + prevent-increment-of-merged-branch-version: true + label: 'beta' + pre-release-weight: 20000 + is-release-branch: true + + pull-request: + regex: ^(pull|pr|pull-request)[/-] + increment: Inherit + label: 'PullRequest' + pre-release-weight: 15000 + prevent-increment-of-merged-branch-version: true + track-merge-target: false + + develop: + regex: ^develop$ + increment: Minor + prevent-increment-of-merged-branch-version: true + label: 'alpha' + pre-release-weight: 30000 track-merge-target: false From f0afde2c5f01a5b568cc4ae2c3128b91a77ef5ac Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:44:08 +0100 Subject: [PATCH 166/230] Update GitVersion.yml typo-corr --- GitVersion.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index 1a4f605887..dca6b1fe39 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -13,7 +13,7 @@ branches: feature: regex: ^features?[/-] increment: Inherit - prevent-increment-of-merged-branch-version: true + prevent-increment-of-merged-branch: true track-merge-target: true label: 'alpha' pre-release-weight: 30000 @@ -21,7 +21,7 @@ branches: release: regex: ^releases?[/-] increment: Patch - prevent-increment-of-merged-branch-version: true + prevent-increment-of-merged-branch: true label: 'beta' pre-release-weight: 25000 is-release-branch: true @@ -29,7 +29,7 @@ branches: hotfix: regex: ^hotfix(es)?[/-] increment: Patch - prevent-increment-of-merged-branch-version: true + prevent-increment-of-merged-branch: true label: 'beta' pre-release-weight: 20000 is-release-branch: true @@ -39,13 +39,13 @@ branches: increment: Inherit label: 'PullRequest' pre-release-weight: 15000 - prevent-increment-of-merged-branch-version: true + prevent-increment-of-merged-branch: true track-merge-target: false develop: regex: ^develop$ increment: Minor - prevent-increment-of-merged-branch-version: true + prevent-increment-of-merged-branch: true label: 'alpha' pre-release-weight: 30000 track-merge-target: false From b2a8b8f78d0db66400f93aa8a1ada96c8a95302a Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:45:09 +0100 Subject: [PATCH 167/230] Update GitVersion.yml typo-corr2 --- GitVersion.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GitVersion.yml b/GitVersion.yml index dca6b1fe39..ab0ca05a41 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -4,7 +4,7 @@ branches: main: regex: ^main$|^master$ increment: Patch - prevent-increment-of-merged-branch-version: true + prevent-increment-of-merged-branch: true is-mainline: true # Note: If you get an error on this line, remove it as it might be deprecated track-merge-target: false label: '' From 5e48445345b863cd13c58f9b46e721757c67ab6c Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:47:14 +0100 Subject: [PATCH 168/230] Update GitVersion.yml typo-corr3 --- GitVersion.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index ab0ca05a41..f04cb6fd8e 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -4,7 +4,7 @@ branches: main: regex: ^main$|^master$ increment: Patch - prevent-increment-of-merged-branch: true + prevent-increment-when-branch-merged: true is-mainline: true # Note: If you get an error on this line, remove it as it might be deprecated track-merge-target: false label: '' @@ -13,7 +13,7 @@ branches: feature: regex: ^features?[/-] increment: Inherit - prevent-increment-of-merged-branch: true + prevent-increment-when-branch-merged: true track-merge-target: true label: 'alpha' pre-release-weight: 30000 @@ -21,7 +21,7 @@ branches: release: regex: ^releases?[/-] increment: Patch - prevent-increment-of-merged-branch: true + prevent-increment-when-branch-merged: true label: 'beta' pre-release-weight: 25000 is-release-branch: true @@ -29,7 +29,7 @@ branches: hotfix: regex: ^hotfix(es)?[/-] increment: Patch - prevent-increment-of-merged-branch: true + prevent-increment-when-branch-merged: true label: 'beta' pre-release-weight: 20000 is-release-branch: true @@ -39,13 +39,13 @@ branches: increment: Inherit label: 'PullRequest' pre-release-weight: 15000 - prevent-increment-of-merged-branch: true + prevent-increment-when-branch-merged: true track-merge-target: false develop: regex: ^develop$ increment: Minor - prevent-increment-of-merged-branch: true + prevent-increment-when-branch-merged: true label: 'alpha' pre-release-weight: 30000 track-merge-target: false From c3fd248fb54be3701830c1981502392df2cd7933 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:48:15 +0100 Subject: [PATCH 169/230] Update GitVersion.yml typo-corr4 --- GitVersion.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index f04cb6fd8e..ae0396daae 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -4,7 +4,7 @@ branches: main: regex: ^main$|^master$ increment: Patch - prevent-increment-when-branch-merged: true + prevent-increment-when-current-commit-tagged: true is-mainline: true # Note: If you get an error on this line, remove it as it might be deprecated track-merge-target: false label: '' @@ -13,7 +13,7 @@ branches: feature: regex: ^features?[/-] increment: Inherit - prevent-increment-when-branch-merged: true + prevent-increment-when-current-commit-tagged: true track-merge-target: true label: 'alpha' pre-release-weight: 30000 @@ -21,7 +21,7 @@ branches: release: regex: ^releases?[/-] increment: Patch - prevent-increment-when-branch-merged: true + prevent-increment-when-current-commit-tagged: true label: 'beta' pre-release-weight: 25000 is-release-branch: true @@ -29,7 +29,7 @@ branches: hotfix: regex: ^hotfix(es)?[/-] increment: Patch - prevent-increment-when-branch-merged: true + prevent-increment-when-current-commit-tagged: true label: 'beta' pre-release-weight: 20000 is-release-branch: true @@ -39,13 +39,13 @@ branches: increment: Inherit label: 'PullRequest' pre-release-weight: 15000 - prevent-increment-when-branch-merged: true + prevent-increment-when-current-commit-tagged: true track-merge-target: false develop: regex: ^develop$ increment: Minor - prevent-increment-when-branch-merged: true + prevent-increment-when-current-commit-tagged: true label: 'alpha' pre-release-weight: 30000 track-merge-target: false From f5fb0e78348bae037611f43d8ad2ec5f946e5eb0 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:50:30 +0100 Subject: [PATCH 170/230] Update GitVersion.yml plain --- GitVersion.yml | 44 -------------------------------------------- 1 file changed, 44 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index ae0396daae..a0baaecb64 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -4,48 +4,4 @@ branches: main: regex: ^main$|^master$ increment: Patch - prevent-increment-when-current-commit-tagged: true - is-mainline: true # Note: If you get an error on this line, remove it as it might be deprecated - track-merge-target: false label: '' - pre-release-weight: 55000 - - feature: - regex: ^features?[/-] - increment: Inherit - prevent-increment-when-current-commit-tagged: true - track-merge-target: true - label: 'alpha' - pre-release-weight: 30000 - - release: - regex: ^releases?[/-] - increment: Patch - prevent-increment-when-current-commit-tagged: true - label: 'beta' - pre-release-weight: 25000 - is-release-branch: true - - hotfix: - regex: ^hotfix(es)?[/-] - increment: Patch - prevent-increment-when-current-commit-tagged: true - label: 'beta' - pre-release-weight: 20000 - is-release-branch: true - - pull-request: - regex: ^(pull|pr|pull-request)[/-] - increment: Inherit - label: 'PullRequest' - pre-release-weight: 15000 - prevent-increment-when-current-commit-tagged: true - track-merge-target: false - - develop: - regex: ^develop$ - increment: Minor - prevent-increment-when-current-commit-tagged: true - label: 'alpha' - pre-release-weight: 30000 - track-merge-target: false From c9f272683a2d3c0e5e3c65527ad9010b2ccee511 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:54:43 +0100 Subject: [PATCH 171/230] Update GitVersion.yml use gitflow min --- GitVersion.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GitVersion.yml b/GitVersion.yml index a0baaecb64..04ab2cf64a 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,4 +1,4 @@ -workflow: TrunkBased/preview1 +workflow: GitFlow branches: main: From 57c1b109a1c25bf0cbc35d1daf1537af13fcb4f7 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:55:38 +0100 Subject: [PATCH 172/230] Update GitVersion.yml remove gitflow --- GitVersion.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index 04ab2cf64a..25355b9570 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,5 +1,3 @@ -workflow: GitFlow - branches: main: regex: ^main$|^master$ From ccf2d17016095af1562e8c1f6dfbdf903c8ed706 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:57:19 +0100 Subject: [PATCH 173/230] Introduce v2 with breaking changes +semver: major --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 318ad51cd5..7dac20460e 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re44"; var di = "ciao"; - var anoth = "MAJOR 1"; + var anoth = "MAJOR 2"; return View(model); } } From 5172295112cb7758151daa06051033deb6640f00 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 16:02:52 +0100 Subject: [PATCH 174/230] Fix: adjust input handling +semver: patch --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 7dac20460e..8380c9e838 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re44"; var di = "ciao"; - var anoth = "MAJOR 2"; + var anoth = "PATCH 1"; return View(model); } } From 08b1fbdb7d2707cb69ce58065831b33dc068f886 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Tue, 22 Jul 2025 16:05:39 +0100 Subject: [PATCH 175/230] Update publish_package.yml downgrade to 5.x --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 4ff6442989..a6a25a58cd 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -29,7 +29,7 @@ jobs: - name: Install GitVersion uses: gittools/actions/gitversion/setup@v4.0.1 with: - versionSpec: '6.3.x' + versionSpec: '5.x' - name: Determine Version id: gitversion From ea20b470aaed4a85099fef99be0bc503d766873d Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 08:53:32 +0100 Subject: [PATCH 176/230] Update publish_package.yml v6x --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index a6a25a58cd..7f04ae2cbb 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -29,7 +29,7 @@ jobs: - name: Install GitVersion uses: gittools/actions/gitversion/setup@v4.0.1 with: - versionSpec: '5.x' + versionSpec: '6.x' - name: Determine Version id: gitversion From 6c2d95bc627d92d21573d01d282e2c860b87996c Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 08:56:08 +0100 Subject: [PATCH 177/230] Update publish_package.yml v5 net 6 --- .github/workflows/publish_package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 7f04ae2cbb..9b0e89e9b9 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -24,12 +24,12 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.x' # Specify your target .NET version + dotnet-version: '6.0.x' # Specify your target .NET version - name: Install GitVersion uses: gittools/actions/gitversion/setup@v4.0.1 with: - versionSpec: '6.x' + versionSpec: '5.x' - name: Determine Version id: gitversion From 609c979ecea9529e7891d667231b682ddd34fac8 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 08:57:27 +0100 Subject: [PATCH 178/230] Update publish_package.yml net 7 --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 9b0e89e9b9..d6028bc087 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -24,7 +24,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.x' # Specify your target .NET version + dotnet-version: '7.0.x' # Specify your target .NET version - name: Install GitVersion uses: gittools/actions/gitversion/setup@v4.0.1 From fc11ff5d17495b510b311caaeb945eeb94a78990 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 08:59:46 +0100 Subject: [PATCH 179/230] Update publish_package.yml v7 net 8 --- .github/workflows/publish_package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index d6028bc087..08949c52c2 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -24,12 +24,12 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.x' # Specify your target .NET version + dotnet-version: '8.0.x' # Specify your target .NET version - name: Install GitVersion uses: gittools/actions/gitversion/setup@v4.0.1 with: - versionSpec: '5.x' + versionSpec: '7.x' - name: Determine Version id: gitversion From 47f0ff01718135453c9de0ad559bc5baa687bef9 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 09:00:58 +0100 Subject: [PATCH 180/230] Update publish_package.yml v630 --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 08949c52c2..2926dbb672 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -29,7 +29,7 @@ jobs: - name: Install GitVersion uses: gittools/actions/gitversion/setup@v4.0.1 with: - versionSpec: '7.x' + versionSpec: '6.3.0' - name: Determine Version id: gitversion From 691864001ff2142d5f17f70c3f590db9998ed46a Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 09:07:27 +0100 Subject: [PATCH 181/230] Correct typo in docs +semver: patch --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 8380c9e838..79fae2e2e8 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re44"; var di = "ciao"; - var anoth = "PATCH 1"; + var anoth = "PATCH 2"; return View(model); } } From 869237aed6fcc922129355d16998ea4b889cf8c6 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 09:11:45 +0100 Subject: [PATCH 182/230] Increment patch version --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 79fae2e2e8..8eeb344d88 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re44"; var di = "ciao"; - var anoth = "PATCH 2"; + var anoth = "PATCH 3"; return View(model); } } From 9182ea1b135ce02a754f1937d2fa7ef72dc30f46 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 09:28:35 +0100 Subject: [PATCH 183/230] Update ButtonViewComponent.cs +semver: patch --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 8eeb344d88..fecd154b06 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re44"; var di = "ciao"; - var anoth = "PATCH 3"; + var anoth = "PATCH 4"; return View(model); } } From ecfe3d6831d766863ae0ad921e64e7b07872f298 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 09:33:46 +0100 Subject: [PATCH 184/230] Update publish_package.yml w version --- .github/workflows/publish_package.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 2926dbb672..f45ef252cf 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -39,6 +39,7 @@ jobs: run: | echo "NuGet Version: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" + echo "Version: ${{ steps.gitversion.outputs.version }}" - name: Use version in another step run: | From 62505af2c67b3cd705a653eb601924dbaf77b2b3 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 09:35:18 +0100 Subject: [PATCH 185/230] Update publish_package.yml enble config file --- .github/workflows/publish_package.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index f45ef252cf..f0541c8ce5 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -34,6 +34,8 @@ jobs: - name: Determine Version id: gitversion uses: gittools/actions/gitversion/execute@v4.0.1 + with: + useConfigFile: true - name: Display versioning outputs run: | From bd9597b9eab7ca2dbae892458ad2a0bcd32a303d Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 09:37:03 +0100 Subject: [PATCH 186/230] Update ButtonViewComponent.cs +semver: patch --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index fecd154b06..1029ad38d0 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re44"; var di = "ciao"; - var anoth = "PATCH 4"; + var anoth = "PATCH 5"; return View(model); } } From 0ef6879bf03bf8633ebd630c966780ef95e7d657 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 09:45:03 +0100 Subject: [PATCH 187/230] Update publish_package.yml check outputs --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index f0541c8ce5..6e734aec5c 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -41,7 +41,7 @@ jobs: run: | echo "NuGet Version: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" - echo "Version: ${{ steps.gitversion.outputs.version }}" + echo "Outputs: ${{ steps.gitversion.outputs }}" - name: Use version in another step run: | From 21d66a6c49f7a231306620c0de6752f66bbaa1aa Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 10:41:00 +0100 Subject: [PATCH 188/230] Update publish_package.yml json --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 6e734aec5c..9614609b7d 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -41,7 +41,7 @@ jobs: run: | echo "NuGet Version: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" - echo "Outputs: ${{ steps.gitversion.outputs }}" + echo "Outputs: ${{ toJson(steps.gitversion.outputs) }}" - name: Use version in another step run: | From 0c436437bad5b059c22f32ebcdd128f7fd59c843 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 10:43:26 +0100 Subject: [PATCH 189/230] Update GitVersion.yml explicit --- GitVersion.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/GitVersion.yml b/GitVersion.yml index 25355b9570..2a12f6203c 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -3,3 +3,4 @@ branches: regex: ^main$|^master$ increment: Patch label: '' + commit-message-incrementing: Enabled From 058a0e43247f003fc49594da45bf4d2fca2f354f Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 10:44:16 +0100 Subject: [PATCH 190/230] Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 1029ad38d0..7fb451604c 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re44"; var di = "ciao"; - var anoth = "PATCH 5"; + var anoth = "PATCH 6"; return View(model); } } From f661d6af490d5d2777242f3a5126615bbcb2824f Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 11:17:23 +0100 Subject: [PATCH 191/230] Update publish_package.yml change path --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 9614609b7d..de22253c1e 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -35,7 +35,7 @@ jobs: id: gitversion uses: gittools/actions/gitversion/execute@v4.0.1 with: - useConfigFile: true + configFilePath: 'GitVersion.yml' - name: Display versioning outputs run: | From d5cdae7d22c8819b254a40661ad4a23979318320 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 11:20:11 +0100 Subject: [PATCH 192/230] Update ButtonViewComponent.cs +semver: patch --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 7fb451604c..651abd8e29 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re44"; var di = "ciao"; - var anoth = "PATCH 6"; + var anoth = "PATCH 7"; return View(model); } } From 9ece0a0d669b4cb8ee9c623a649d42038ec5bb92 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 11:47:50 +0100 Subject: [PATCH 193/230] Update GitVersion.yml use trunkbased --- GitVersion.yml | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/GitVersion.yml b/GitVersion.yml index 2a12f6203c..28064ea828 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,6 +1,50 @@ +workflow: TrunkBased/preview1 + branches: main: regex: ^main$|^master$ increment: Patch + prevent-increment-of-merged-branch: true + track-merge-target: false label: '' - commit-message-incrementing: Enabled + pre-release-weight: 55000 + + feature: + regex: ^features?[/-] + increment: Inherit + prevent-increment-of-merged-branch: true + track-merge-target: true + label: 'alpha' + pre-release-weight: 30000 + + release: + regex: ^releases?[/-] + increment: Patch + prevent-increment-of-merged-branch: true + label: 'beta' + pre-release-weight: 25000 + is-release-branch: true + + hotfix: + regex: ^hotfix(es)?[/-] + increment: Patch + prevent-increment-of-merged-branch: true + label: 'beta' + pre-release-weight: 20000 + is-release-branch: true + + pull-request: + regex: ^(pull|pr|pull-request)[/-] + increment: Inherit + label: 'PullRequest' + pre-release-weight: 15000 + prevent-increment-of-merged-branch: true + track-merge-target: false + + develop: + regex: ^develop$ + increment: Minor + prevent-increment-of-merged-branch: true + label: 'alpha' + pre-release-weight: 30000 + track-merge-target: false From 014f67020d9b8a318d97232666e3840a56f6b3ee Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Wed, 23 Jul 2025 14:47:08 +0100 Subject: [PATCH 194/230] Update GitVersion.yml remove property --- GitVersion.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index 28064ea828..e24be475dc 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -4,23 +4,18 @@ branches: main: regex: ^main$|^master$ increment: Patch - prevent-increment-of-merged-branch: true - track-merge-target: false label: '' pre-release-weight: 55000 feature: regex: ^features?[/-] increment: Inherit - prevent-increment-of-merged-branch: true - track-merge-target: true label: 'alpha' pre-release-weight: 30000 release: regex: ^releases?[/-] increment: Patch - prevent-increment-of-merged-branch: true label: 'beta' pre-release-weight: 25000 is-release-branch: true @@ -28,7 +23,6 @@ branches: hotfix: regex: ^hotfix(es)?[/-] increment: Patch - prevent-increment-of-merged-branch: true label: 'beta' pre-release-weight: 20000 is-release-branch: true @@ -38,13 +32,11 @@ branches: increment: Inherit label: 'PullRequest' pre-release-weight: 15000 - prevent-increment-of-merged-branch: true track-merge-target: false develop: regex: ^develop$ increment: Minor - prevent-increment-of-merged-branch: true label: 'alpha' pre-release-weight: 30000 track-merge-target: false From 6d8476eb1d8d29e3f41fcecb62caebebdf04018e Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:27:34 +0100 Subject: [PATCH 195/230] Update GitVersion.yml --- GitVersion.yml | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index e24be475dc..46815065ba 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -6,37 +6,18 @@ branches: increment: Patch label: '' pre-release-weight: 55000 + is-main-branch: true - feature: - regex: ^features?[/-] - increment: Inherit + develop: + regex: ^develop$ + increment: Minor label: 'alpha' pre-release-weight: 30000 - - release: - regex: ^releases?[/-] - increment: Patch - label: 'beta' - pre-release-weight: 25000 - is-release-branch: true - - hotfix: - regex: ^hotfix(es)?[/-] - increment: Patch - label: 'beta' - pre-release-weight: 20000 - is-release-branch: true + is-main-branch: true pull-request: regex: ^(pull|pr|pull-request)[/-] - increment: Inherit + increment: Patch # avoid "Inherit" label: 'PullRequest' pre-release-weight: 15000 track-merge-target: false - - develop: - regex: ^develop$ - increment: Minor - label: 'alpha' - pre-release-weight: 30000 - track-merge-target: false From f8fd4db9e55c7796f1c5485b96aef00c2ab04615 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:32:35 +0100 Subject: [PATCH 196/230] Update GitVersion.yml --- GitVersion.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index 46815065ba..0667270e55 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,4 +1,4 @@ -workflow: TrunkBased/preview1 +workflow: GitHubFlow/v1 branches: main: @@ -17,7 +17,8 @@ branches: pull-request: regex: ^(pull|pr|pull-request)[/-] - increment: Patch # avoid "Inherit" + increment: None # Changed from Inherit label: 'PullRequest' pre-release-weight: 15000 track-merge-target: false + From e40a3d132dabc7eabd23127664168a2de8d161c8 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:34:38 +0100 Subject: [PATCH 197/230] Implement additional API endpoint +semver: minor --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 651abd8e29..4c520dd5d6 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re44"; var di = "ciao"; - var anoth = "PATCH 7"; + var anoth = "PATCH 8"; return View(model); } } From c6b6982ab56527a1de220b41fed426db827c2ffc Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:37:19 +0100 Subject: [PATCH 198/230] Patch ButtonViewComponent.cs error --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 4c520dd5d6..391301c417 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -15,7 +15,7 @@ public IViewComponentResult Invoke( string? aspController = null, string? aspAction = null, Dictionary? aspRouteData = null, - bool preventDoubleClick = false) + bool preventDoubleClick = true) { var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); var numer = 1257; From fa7e808d4adf0d1808fd2333aa0b9f42cdbf2607 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:44:53 +0100 Subject: [PATCH 199/230] Update GitVersion.yml --- GitVersion.yml | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index 0667270e55..f5c6e5a1c2 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,24 +1,4 @@ -workflow: GitHubFlow/v1 - +mode: ContinuousDeployment branches: main: - regex: ^main$|^master$ increment: Patch - label: '' - pre-release-weight: 55000 - is-main-branch: true - - develop: - regex: ^develop$ - increment: Minor - label: 'alpha' - pre-release-weight: 30000 - is-main-branch: true - - pull-request: - regex: ^(pull|pr|pull-request)[/-] - increment: None # Changed from Inherit - label: 'PullRequest' - pre-release-weight: 15000 - track-merge-target: false - From ae090e360ec21d8a0d718a237a0bc35f0d556876 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:49:26 +0100 Subject: [PATCH 200/230] Trigger patch version increment --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 391301c417..3fcdc47696 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -19,9 +19,9 @@ public IViewComponentResult Invoke( { var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); var numer = 1257; - var f = "re44"; - var di = "ciao"; - var anoth = "PATCH 8"; + var f = "re4487"; + var di = "ciao22"; + var anoth = "PATCH 9"; return View(model); } } From 6d6371ac21f2b2375dd879ea18e5fec71b8d33f6 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:50:38 +0100 Subject: [PATCH 201/230] Update ButtonViewComponent.cs +semver: patch --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 3fcdc47696..d4fc0af577 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re4487"; var di = "ciao22"; - var anoth = "PATCH 9"; + var anoth = "PATCH 10"; return View(model); } } From 7c473b21449dccdba9e1519df7b21532dd20895e Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:53:04 +0100 Subject: [PATCH 202/230] bump: patch - Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index d4fc0af577..2044872e67 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -20,7 +20,7 @@ public IViewComponentResult Invoke( var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); var numer = 1257; var f = "re4487"; - var di = "ciao22"; + var di = "ciao2233"; var anoth = "PATCH 10"; return View(model); } From 79266a797f5595111df78d4c5c4cbc3acfbb387a Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:53:45 +0100 Subject: [PATCH 203/230] Update ButtonViewComponent.cs - bump: patch --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 2044872e67..3a625c3916 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 1257; var f = "re4487"; var di = "ciao2233"; - var anoth = "PATCH 10"; + var anoth = "PATCH 11"; return View(model); } } From 562b500a52874073b6ee7fdc600e3408cc4bc795 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:54:45 +0100 Subject: [PATCH 204/230] Update ButtonViewComponent.cs - version: patch --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 3a625c3916..e707403b07 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -18,7 +18,7 @@ public IViewComponentResult Invoke( bool preventDoubleClick = true) { var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); - var numer = 1257; + var numer = 12570; var f = "re4487"; var di = "ciao2233"; var anoth = "PATCH 11"; From 19a28c0a7ad85f2aa958158b0061125193083459 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:55:48 +0100 Subject: [PATCH 205/230] version: patch increment patch --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index e707403b07..5f079d4dff 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -19,7 +19,7 @@ public IViewComponentResult Invoke( { var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); var numer = 12570; - var f = "re4487"; + var f = "re44870"; var di = "ciao2233"; var anoth = "PATCH 11"; return View(model); From 918e9985e8eaa897c6c986743a8aa183452cac0e Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:56:53 +0100 Subject: [PATCH 206/230] bump: patch INcrement --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 5f079d4dff..1bd15995c1 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 12570; var f = "re44870"; var di = "ciao2233"; - var anoth = "PATCH 11"; + var anoth = "PATCH 12"; return View(model); } } From 10603d76ba93f87b82c6dbf1c1622b42a7a07b0d Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:59:08 +0100 Subject: [PATCH 207/230] Update ButtonViewComponent.cs Increment patch version --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 1bd15995c1..65aedbe5b9 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -20,7 +20,7 @@ public IViewComponentResult Invoke( var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); var numer = 12570; var f = "re44870"; - var di = "ciao2233"; + var di = "ciao2233ww"; var anoth = "PATCH 12"; return View(model); } From a3ca90ed134c493c7288d6111d58df89181267d1 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Thu, 24 Jul 2025 13:00:14 +0100 Subject: [PATCH 208/230] Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 9545344b50..3502632b74 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -20,7 +20,7 @@ public IViewComponentResult Invoke( var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); var numer = 1222; var f = "rer"; - var di = "ciao"; + var di = "ciao43"; return View(model); } } From 28127735c4a7bdd8e2443254b3722fc9e6525269 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 15:12:23 +0100 Subject: [PATCH 209/230] Delete GitVersion.yml --- GitVersion.yml | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 GitVersion.yml diff --git a/GitVersion.yml b/GitVersion.yml deleted file mode 100644 index f5c6e5a1c2..0000000000 --- a/GitVersion.yml +++ /dev/null @@ -1,4 +0,0 @@ -mode: ContinuousDeployment -branches: - main: - increment: Patch From e2ea86b60653b48ccaa344763aa52dd77792a1f8 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 15:26:34 +0100 Subject: [PATCH 210/230] Update publish_package.yml - replace test --- .github/workflows/publish_package.yml | 64 ++++++++------------------- 1 file changed, 19 insertions(+), 45 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index de22253c1e..ea6c626e94 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -3,62 +3,36 @@ name: Publish NuGet Package on: [push, pull_request] jobs: - nuget_publish: - name: Build, Pack, and Publish NuGet Package - # if: github.event.pull_request.merged == true + publish: runs-on: ubuntu-latest permissions: contents: write packages: write - env: - BUILD_CONFIG: "Release" - PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - + steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup .NET - uses: actions/setup-dotnet@v3 + - name: 'Checkout repository' + uses: actions/checkout@v3 with: - dotnet-version: '8.0.x' # Specify your target .NET version + fetch-depth: 0 # Fetches all history for GitVersion to analyze - - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v4.0.1 + - name: 'Install GitVersion' + uses: gittools/actions/gitversion/setup@v0.9.15 with: - versionSpec: '6.3.0' + versionSpec: '5.x' - - name: Determine Version + - name: 'Determine Version' id: gitversion - uses: gittools/actions/gitversion/execute@v4.0.1 - with: - configFilePath: 'GitVersion.yml' + uses: gittools/actions/gitversion/execute@v0.9.15 - - name: Display versioning outputs - run: | - echo "NuGet Version: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" - echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" - echo "Outputs: ${{ toJson(steps.gitversion.outputs) }}" + - name: 'Setup .NET' + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '6.0.x' - - name: Use version in another step + - name: 'Build and Pack' run: | - VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" - echo "VERSION=$VERSION" >> $GITHUB_ENV - - - name: Restore NuGet packages - run: dotnet restore $PROJECT_PATH - - - name: Build project - run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore - - - name: Pack NuGet package - run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=$VERSION - - - name: Add GitHub NuGet source - run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + dotnet build ${{ env.PROJECT_PATH }} --configuration Release + dotnet pack ${{ env.PROJECT_PATH }} --configuration Release -p:Version=${{ steps.gitversion.outputs.semVer }} -o ./output - - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key $GITHUB_TOKEN --source "github" --skip-duplicate + - name: 'Publish to GitHub Packages' + run: dotnet nuget push "./output/*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}" From 4ee6fe0231b1731b4962016cc61c7d48d31c52e9 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 15:28:45 +0100 Subject: [PATCH 211/230] Update publish_package.yml - net8 and view v --- .github/workflows/publish_package.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index ea6c626e94..b35a0b5492 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -24,10 +24,18 @@ jobs: id: gitversion uses: gittools/actions/gitversion/execute@v0.9.15 + + - name: Display GitVersion outputs + run: | + echo "Major: ${{ steps.gitversion.outputs.major }}" + echo "Minor: ${{ steps.gitversion.outputs.minor }}" + echo "Patch: ${{ steps.gitversion.outputs.patch }}" + echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" + - name: 'Setup .NET' uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.x' + dotnet-version: '8.0.x' - name: 'Build and Pack' run: | From cf206d712e4ff40a6cd864bf1e43211f82f1ba32 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 15:32:21 +0100 Subject: [PATCH 212/230] fix: Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 6d3807e0d9..4074ab2e1b 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -20,7 +20,7 @@ public IViewComponentResult Invoke( var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); var numer = 1222; var f = "rer"; - var di = "ciao43"; + var di = "ciao44"; var anoth = "PATCH 12"; return View(model); } From 16f2d9ce0a08afce4fe38c4459e589916afa36f3 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 15:36:48 +0100 Subject: [PATCH 213/230] BREAKING CHANGE:Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 4074ab2e1b..6230f0f51e 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -22,7 +22,7 @@ public IViewComponentResult Invoke( var f = "rer"; var di = "ciao44"; var anoth = "PATCH 12"; - return View(model); + return View(moel); } } } From 688f828a1cb2428f9c582296335aee8f14ce402c Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 15:54:56 +0100 Subject: [PATCH 214/230] fix: Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 6230f0f51e..4074ab2e1b 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -22,7 +22,7 @@ public IViewComponentResult Invoke( var f = "rer"; var di = "ciao44"; var anoth = "PATCH 12"; - return View(moel); + return View(model); } } } From 07cb9863c54dc77f7f3012296375a8a3dcba7e76 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 15:56:24 +0100 Subject: [PATCH 215/230] BREAKING CHANGE: Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 4074ab2e1b..d83bb2838c 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -18,7 +18,7 @@ public IViewComponentResult Invoke( bool preventDoubleClick = true) { var model = new ButtonViewModel(text, aspController, aspAction, aspRouteData, styling, style, preventDoubleClick); - var numer = 1222; + var numer = 12225; var f = "rer"; var di = "ciao44"; var anoth = "PATCH 12"; From d08e923f71d34fe03f4822d55d54dbe808a98401 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 15:57:59 +0100 Subject: [PATCH 216/230] Update publish_package.yml --- .github/workflows/publish_package.yml | 99 ++++++++++++++++++++------- 1 file changed, 73 insertions(+), 26 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index b35a0b5492..40baa98bf8 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -1,29 +1,74 @@ -name: Publish NuGet Package +name: Pull request -on: [push, pull_request] +on: pull_request jobs: - publish: + sonar_analysis: + name: Sonar analysis runs-on: ubuntu-latest - permissions: - contents: write - packages: write - steps: - - name: 'Checkout repository' - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 with: - fetch-depth: 0 # Fetches all history for GitVersion to analyze + node-version: 20 + cache: 'npm' + + - name: Install dependencies + run: npm install + + # - name: Sonar analysis + # uses: sonarsource/sonarcloud-github-action@master + # with: + # projectBaseDir: . + # env: + # GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + # SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + + - name: Run linting + run: npm run lint + + # - name: Run tests + # run: npm test - - name: 'Install GitVersion' - uses: gittools/actions/gitversion/setup@v0.9.15 + # - name: Run backstop + # run: npm run backstop:ci + + nuget_publish: + name: Build, Pack, and Publish NuGet Package + runs-on: ubuntu-latest + needs: sonar_analysis + #if: github.event.pull_request.merged == true + env: + BUILD_CONFIG: 'Release' + PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 with: - versionSpec: '5.x' + dotnet-version: '8.0.x' - - name: 'Determine Version' - id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.15 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup .NET Core 3.1 + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '3.1.x' + + - name: Install GitVersion + uses: gittools/actions/gitversion/setup@v0.9.7 + with: + versionSpec: '5.12.0' + + - name: Determine Version + id: gitversion + uses: gittools/actions/gitversion/execute@v0.9.7 - name: Display GitVersion outputs run: | @@ -32,15 +77,17 @@ jobs: echo "Patch: ${{ steps.gitversion.outputs.patch }}" echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" - - name: 'Setup .NET' - uses: actions/setup-dotnet@v3 - with: - dotnet-version: '8.0.x' + - name: Restore NuGet packages + run: dotnet restore ${{ env.PROJECT_PATH }} - - name: 'Build and Pack' - run: | - dotnet build ${{ env.PROJECT_PATH }} --configuration Release - dotnet pack ${{ env.PROJECT_PATH }} --configuration Release -p:Version=${{ steps.gitversion.outputs.semVer }} -o ./output + - name: Build solution + run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore + + - name: Pack NuGet package + run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} + + - name: Add GitHub NuGet source + - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.RELEASE_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - - name: 'Publish to GitHub Packages' - run: dotnet nuget push "./output/*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}" + - name: Publish NuGet package to GitHub Packages + run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.RELEASE_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate From 933bf266cea2a1b5e6efd6ece743f8e58040007e Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:01:49 +0100 Subject: [PATCH 217/230] Update publish_package.yml - revert --- .github/workflows/publish_package.yml | 99 +++++++++------------------ 1 file changed, 34 insertions(+), 65 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 40baa98bf8..f06d3f6e51 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -1,93 +1,62 @@ -name: Pull request +name: Publish NuGet Package -on: pull_request +on: [push, pull_request] jobs: - sonar_analysis: - name: Sonar analysis - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'npm' - - - name: Install dependencies - run: npm install - - # - name: Sonar analysis - # uses: sonarsource/sonarcloud-github-action@master - # with: - # projectBaseDir: . - # env: - # GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - # SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - - - name: Run linting - run: npm run lint - - # - name: Run tests - # run: npm test - - # - name: Run backstop - # run: npm run backstop:ci - nuget_publish: name: Build, Pack, and Publish NuGet Package + # if: github.event.pull_request.merged == true runs-on: ubuntu-latest - needs: sonar_analysis - #if: github.event.pull_request.merged == true + permissions: + contents: write + packages: write env: - BUILD_CONFIG: 'Release' - PROJECT_PATH: 'DotnetViewComponents/DotnetViewComponents.csproj' + BUILD_CONFIG: "Release" + PROJECT_PATH: "DotnetViewComponents/DotnetViewComponents.csproj" + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + steps: - - name: Checkout repository + - name: Checkout code uses: actions/checkout@v4 - - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '8.0.x' - - - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Setup .NET Core 3.1 - uses: actions/setup-dotnet@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v3 with: - dotnet-version: '3.1.x' + dotnet-version: '8.0.x' # Specify your target .NET version - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9.7 + uses: gittools/actions/gitversion/setup@v4.0.1 with: - versionSpec: '5.12.0' - + versionSpec: '6.3.0' + - name: Determine Version - id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.7 + id: gitversion + uses: gittools/actions/gitversion/execute@v4.0.1 + + - name: Display versioning outputs + run: | + echo "NuGet Version: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" + echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" + echo "Outputs: ${{ toJson(steps.gitversion.outputs) }}" - - name: Display GitVersion outputs + - name: Use version in another step run: | - echo "Major: ${{ steps.gitversion.outputs.major }}" - echo "Minor: ${{ steps.gitversion.outputs.minor }}" - echo "Patch: ${{ steps.gitversion.outputs.patch }}" - echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" + VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" + echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Restore NuGet packages - run: dotnet restore ${{ env.PROJECT_PATH }} + run: dotnet restore $PROJECT_PATH - - name: Build solution - run: dotnet build ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-restore + - name: Build project + run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore - name: Pack NuGet package - run: dotnet pack ${{ env.PROJECT_PATH }} --configuration ${{ env.BUILD_CONFIG }} --no-build -o out /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} + run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=$VERSION - name: Add GitHub NuGet source - - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.RELEASE_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish NuGet package to GitHub Packages - run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.RELEASE_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate + run: dotnet nuget push out/*.nupkg --api-key $GITHUB_TOKEN --source "github" --skip-duplicate From 1ef85c2d1dbba546a8cb1e9dfe112bc2f50d1a3e Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:08:04 +0100 Subject: [PATCH 218/230] fix: Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index d83bb2838c..cb718a4877 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 12225; var f = "rer"; var di = "ciao44"; - var anoth = "PATCH 12"; + var anoth = "PATCH 15"; return View(model); } } From 9a825fc3943412ca40abf0bd8f1dbb28780a4af7 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:09:32 +0100 Subject: [PATCH 219/230] Update FieldsetViewComponent.cs --- DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs b/DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs index e2a4887901..695fde2281 100644 --- a/DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs @@ -11,6 +11,7 @@ public IViewComponentResult Invoke( List fieldList) { var model = new FieldsetViewModel(title, fieldList); + var er = "er"; return View(model); } From 162576072e19bfe924ce9eca30fe9da62b0aec02 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:10:26 +0100 Subject: [PATCH 220/230] fix: Update FieldsetViewComponent.cs --- DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs b/DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs index 695fde2281..db87341d2b 100644 --- a/DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs @@ -12,6 +12,7 @@ public IViewComponentResult Invoke( { var model = new FieldsetViewModel(title, fieldList); var er = "er"; + var ee = "23"; return View(model); } From 24b29b2ebf7355840abd4b75d38fb6b910090db6 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:11:49 +0100 Subject: [PATCH 221/230] fix: Update FieldsetViewComponent.cs --- DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs b/DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs index db87341d2b..676ceb05d4 100644 --- a/DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/FieldsetViewComponent.cs @@ -12,7 +12,7 @@ public IViewComponentResult Invoke( { var model = new FieldsetViewModel(title, fieldList); var er = "er"; - var ee = "23"; + var ee = "22344"; return View(model); } From ea17872d4abf2ccfb495c86351bc90be4d84b38f Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:14:03 +0100 Subject: [PATCH 222/230] fix: Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index cb718a4877..442d43cdd7 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 12225; var f = "rer"; var di = "ciao44"; - var anoth = "PATCH 15"; + var anoth = "PATCH 156"; return View(model); } } From 710b824d9b8fddae7fcb77e65d6c5677c930ff03 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:14:30 +0100 Subject: [PATCH 223/230] feat: Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 442d43cdd7..6e899f707e 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 12225; var f = "rer"; var di = "ciao44"; - var anoth = "PATCH 156"; + var anoth = "PATCH 1543"; return View(model); } } From e247ea217caf2541f180403395d17c953df18fdd Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:20:04 +0100 Subject: [PATCH 224/230] Update ButtonViewComponent.cs --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 6e899f707e..485b52cd1c 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 12225; var f = "rer"; var di = "ciao44"; - var anoth = "PATCH 1543"; + var anoth = "PATCH 1221"; return View(model); } } From 0115e2c7251fefd1ae7051ac8e9e825ef9b056f0 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:28:56 +0100 Subject: [PATCH 225/230] Update publish_package.yml - test custom auto-incremement --- .github/workflows/publish_package.yml | 30 ++++++++++++--------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index f06d3f6e51..d3847bb3cc 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -26,25 +26,21 @@ jobs: with: dotnet-version: '8.0.x' # Specify your target .NET version - - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v4.0.1 - with: - versionSpec: '6.3.0' - - - name: Determine Version - id: gitversion - uses: gittools/actions/gitversion/execute@v4.0.1 - - - name: Display versioning outputs + - name: 'Get latest version tag' + id: get_version run: | - echo "NuGet Version: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" - echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" - echo "Outputs: ${{ toJson(steps.gitversion.outputs) }}" + # Get the latest tag, default to v0.0.0 if no tags exist + latest_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0") + echo "LATEST_TAG=$latest_tag" >> $GITHUB_ENV - - name: Use version in another step + - name: 'Increment patch version' + id: increment_version run: | - VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" - echo "VERSION=$VERSION" >> $GITHUB_ENV + # Increment the patch version (the last number) + new_version=$(echo "${{ env.LATEST_TAG }}" | awk -F. -v OFS=. '{$NF++;print}') + echo "NEW_VERSION=$new_version" >> $GITHUB_ENV + echo "::set-output name=version::${new_version#v}" + - name: Restore NuGet packages run: dotnet restore $PROJECT_PATH @@ -53,7 +49,7 @@ jobs: run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore - name: Pack NuGet package - run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=$VERSION + run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=${{ steps.increment_version.outputs.version }} - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From f992b55e993208fad54e1ef50cc10b5c7ee830f9 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:39:08 +0100 Subject: [PATCH 226/230] Update ButtonViewComponent.cs attempted --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index 485b52cd1c..aa4f0ec335 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -21,7 +21,7 @@ public IViewComponentResult Invoke( var numer = 12225; var f = "rer"; var di = "ciao44"; - var anoth = "PATCH 1221"; + var anoth = "PATCH 1221xx"; return View(model); } } From 6b5bf7077515b8bc9bc1738e29db9fad6a5b9732 Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 28 Jul 2025 12:55:42 +0100 Subject: [PATCH 227/230] Update publish_package.yml to pr only --- .github/workflows/publish_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index d3847bb3cc..d588bcd2d5 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -1,6 +1,6 @@ name: Publish NuGet Package -on: [push, pull_request] +on: [pull_request] jobs: nuget_publish: From 18e13637bda76123cfe964b252092caeaee3ff3e Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 28 Jul 2025 12:56:40 +0100 Subject: [PATCH 228/230] Update ButtonViewComponent.cs a1 --- DotnetViewComponents/ViewComponents/ButtonViewComponent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs index aa4f0ec335..8aace9129c 100644 --- a/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs +++ b/DotnetViewComponents/ViewComponents/ButtonViewComponent.cs @@ -22,6 +22,7 @@ public IViewComponentResult Invoke( var f = "rer"; var di = "ciao44"; var anoth = "PATCH 1221xx"; + var a = 1; return View(model); } } From bb78fd13ca06a116dc9aec9494d0ae24ea24036a Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 28 Jul 2025 14:27:29 +0100 Subject: [PATCH 229/230] Update publish_package.yml revert --- .github/workflows/publish_package.yml | 32 +++++++++++++++------------ 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index d588bcd2d5..f06d3f6e51 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -1,6 +1,6 @@ name: Publish NuGet Package -on: [pull_request] +on: [push, pull_request] jobs: nuget_publish: @@ -26,21 +26,25 @@ jobs: with: dotnet-version: '8.0.x' # Specify your target .NET version - - name: 'Get latest version tag' - id: get_version - run: | - # Get the latest tag, default to v0.0.0 if no tags exist - latest_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0") - echo "LATEST_TAG=$latest_tag" >> $GITHUB_ENV + - name: Install GitVersion + uses: gittools/actions/gitversion/setup@v4.0.1 + with: + versionSpec: '6.3.0' - - name: 'Increment patch version' - id: increment_version + - name: Determine Version + id: gitversion + uses: gittools/actions/gitversion/execute@v4.0.1 + + - name: Display versioning outputs run: | - # Increment the patch version (the last number) - new_version=$(echo "${{ env.LATEST_TAG }}" | awk -F. -v OFS=. '{$NF++;print}') - echo "NEW_VERSION=$new_version" >> $GITHUB_ENV - echo "::set-output name=version::${new_version#v}" + echo "NuGet Version: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" + echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" + echo "Outputs: ${{ toJson(steps.gitversion.outputs) }}" + - name: Use version in another step + run: | + VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" + echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Restore NuGet packages run: dotnet restore $PROJECT_PATH @@ -49,7 +53,7 @@ jobs: run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore - name: Pack NuGet package - run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=${{ steps.increment_version.outputs.version }} + run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=$VERSION - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" From 8828399d36f6a9524a20bd93448af221701393ed Mon Sep 17 00:00:00 2001 From: akdalin-hee <124877763+akdalin-hee@users.noreply.github.com> Date: Mon, 28 Jul 2025 14:27:57 +0100 Subject: [PATCH 230/230] Update publish_package.yml revert --- .github/workflows/publish_package.yml | 30 +++++++++++++++------------ 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index d3847bb3cc..f06d3f6e51 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -26,21 +26,25 @@ jobs: with: dotnet-version: '8.0.x' # Specify your target .NET version - - name: 'Get latest version tag' - id: get_version - run: | - # Get the latest tag, default to v0.0.0 if no tags exist - latest_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0") - echo "LATEST_TAG=$latest_tag" >> $GITHUB_ENV + - name: Install GitVersion + uses: gittools/actions/gitversion/setup@v4.0.1 + with: + versionSpec: '6.3.0' - - name: 'Increment patch version' - id: increment_version + - name: Determine Version + id: gitversion + uses: gittools/actions/gitversion/execute@v4.0.1 + + - name: Display versioning outputs run: | - # Increment the patch version (the last number) - new_version=$(echo "${{ env.LATEST_TAG }}" | awk -F. -v OFS=. '{$NF++;print}') - echo "NEW_VERSION=$new_version" >> $GITHUB_ENV - echo "::set-output name=version::${new_version#v}" + echo "NuGet Version: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" + echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" + echo "Outputs: ${{ toJson(steps.gitversion.outputs) }}" + - name: Use version in another step + run: | + VERSION="${{ steps.gitversion.outputs.major }}.${{ steps.gitversion.outputs.minor }}.${{ steps.gitversion.outputs.patch }}" + echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Restore NuGet packages run: dotnet restore $PROJECT_PATH @@ -49,7 +53,7 @@ jobs: run: dotnet build $PROJECT_PATH --configuration $BUILD_CONFIG --no-restore - name: Pack NuGet package - run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=${{ steps.increment_version.outputs.version }} + run: dotnet pack $PROJECT_PATH --configuration $BUILD_CONFIG --no-build -o out /p:PackageVersion=$VERSION - name: Add GitHub NuGet source run: dotnet nuget add source --username ${{ github.actor }} --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"