From 25d0f7bd4be8deebf4ac61922e2fb039ccf3b705 Mon Sep 17 00:00:00 2001 From: Phil-NHS Date: Tue, 15 Apr 2025 10:59:30 +0100 Subject: [PATCH 1/3] feat(pr and rel): to master --- .github/workflows/pull_request.yml | 14 +++-------- .github/workflows/release.yml | 40 ++++++++++++++++++++++-------- 2 files changed, 33 insertions(+), 21 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 0bd8d8a..15bbd9e 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,14 +1,10 @@ name: Pull Request Checks - on: pull_request: - branches: - - '**' + # branches: + # - '**' jobs: - - - branch-name-check: name: Enforce Branch Name Convention runs-on: ubuntu-latest @@ -75,12 +71,8 @@ jobs: Code-Coverage: runs-on: ubuntu-latest + if: success() || failure() steps: - name: Code Coverage run: echo "TODO Code Coverage" #continue-on-error: true - - - - - \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c0f8838..305dea1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -152,30 +152,50 @@ jobs: with: global-json-file: global.json + - name: Remove Local PackageSettings (CI Only) + run: rm -f PackageSettings.props.local + - name: Replace local environment variable in nuget config because cant provide it as a parameter run: | + echo "sed -i \"s|%LocalPackagePath%|$BCL_Source|g\" nuget.config" sed -i "s|%LocalPackagePath%|$BCL_Source|g" nuget.config sed -i "s|%GITHUB_USERNAME%|$GITHUB_USERNAME|g" nuget.config sed -i "s|%GITHUB_PACKAGES_TOKEN%|$PACKAGES_TOKEN |g" nuget.config - + + - name: debug BCL_VERSION + run: | + echo "BCL_VERSION $BCL_VERSION" - name: Clean lock files because the newly generated package file will superseed the locks run: | + echo "Listing packages.lock.json files:" + find . -name "packages.lock.json" -type f -print + echo "" + echo "Deleting packages.lock.json files:" find . -name "packages.lock.json" -type f -exec rm -f {} \; - - - name: Restore NuGet Packages for Specifically the BCL Package Library Project - run: dotnet restore TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj - - - name: Create docs directory - run: mkdir -p docs - # Hardcode the INDEPENDENT_CLIENT_GH_PAGES value - # Blazor client so appsetting in wwwroot and public + echo "Listing packages.lock.json files:" + find . -name "packages.lock.json" -type f -print + + - name: Build Shared Pages + run: | + dotnet build SharedPages -c Release \ + /p:BCLVersion=$BCL_VERSION \ + /p:NupkgOutputPath=$NUPKG_OUTPUT_PATH \ + /p:UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE \ + /p:GhPageRelease=false \ + /p:LocalPackagePath=$BCL_Source + + # Blazor client so appsetting in wwwroot and public - name: Modify appsettings.json with hardcoded value run: | jq '.INDEPENDENT_CLIENT_GH_PAGES = "true"' TestHostPrerenderWASM/TestHostPrerenderWASM.Client/wwwroot/appsettings.json > tmp.json && mv tmp.json TestHostPrerenderWASM/TestHostPrerenderWASM.Client/wwwroot/appsettings.json - + + - name: Create docs directory + run: mkdir -p docs + + # Print the contents of appsettings.json inside 'TestHostPrerenderWASM.Client' folder # - name: Display appsettings.json content From ad61ce1483e0822167df4752cf173794b9414bf3 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 15 Apr 2025 10:00:55 +0000 Subject: [PATCH 2/3] chore(release): 9.0.0-feat-version-work-on-branch-maybe.30 [skip ci] # [9.0.0-feat-version-work-on-branch-maybe.30](https://github.com/TechnologyEnhancedLearning/GitPageBlazorWASM/compare/v9.0.0-feat-version-work-on-branch-maybe.29...v9.0.0-feat-version-work-on-branch-maybe.30) (2025-04-15) ### Features * **pr and rel:** to master ([25d0f7b](https://github.com/TechnologyEnhancedLearning/GitPageBlazorWASM/commit/25d0f7bd4be8deebf4ac61922e2fb039ccf3b705)) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index be2d94e..4b9e25e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [9.0.0-feat-version-work-on-branch-maybe.30](https://github.com/TechnologyEnhancedLearning/GitPageBlazorWASM/compare/v9.0.0-feat-version-work-on-branch-maybe.29...v9.0.0-feat-version-work-on-branch-maybe.30) (2025-04-15) + + +### Features + +* **pr and rel:** to master ([25d0f7b](https://github.com/TechnologyEnhancedLearning/GitPageBlazorWASM/commit/25d0f7bd4be8deebf4ac61922e2fb039ccf3b705)) + # [9.0.0-feat-version-work-on-branch-maybe.29](https://github.com/TechnologyEnhancedLearning/GitPageBlazorWASM/compare/v9.0.0-feat-version-work-on-branch-maybe.28...v9.0.0-feat-version-work-on-branch-maybe.29) (2025-04-15) From 8b09da2262c11e52511acc3699e722d7a76827cc Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 15 Apr 2025 10:11:55 +0000 Subject: [PATCH 3/3] chore(release): 9.1.0-feat-version-work-on-branch-maybe.1 [skip ci] # [9.1.0-feat-version-work-on-branch-maybe.1](https://github.com/TechnologyEnhancedLearning/GitPageBlazorWASM/compare/v9.0.0...v9.1.0-feat-version-work-on-branch-maybe.1) (2025-04-15) ### Features * **pr and rel:** to master ([25d0f7b](https://github.com/TechnologyEnhancedLearning/GitPageBlazorWASM/commit/25d0f7bd4be8deebf4ac61922e2fb039ccf3b705)) --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e69de29..b1f6944 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +# [9.1.0-feat-version-work-on-branch-maybe.1](https://github.com/TechnologyEnhancedLearning/GitPageBlazorWASM/compare/v9.0.0...v9.1.0-feat-version-work-on-branch-maybe.1) (2025-04-15) + + +### Features + +* **pr and rel:** to master ([25d0f7b](https://github.com/TechnologyEnhancedLearning/GitPageBlazorWASM/commit/25d0f7bd4be8deebf4ac61922e2fb039ccf3b705))