Skip to content

Commit 54571ff

Browse files
committed
feat(button): need to centralise css creation and target showcase
1 parent f4898b8 commit 54571ff

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/reuseable-ci-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
# Build Package
4949
# Build Solution useing package
5050
reuseable-ci-checks-solution-build:
51-
name: Check solution builds
51+
name: Check solution builds as Release
5252
runs-on: ubuntu-latest
5353
continue-on-error: ${{ inputs.runall }}
5454
outputs:

TELBlazor.Components/TELBlazor.Components.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,13 @@
5858
<WriteLinesToFile File="wwwroot/TELBlazorPackageVersion.txt" Lines="$(TELBlazorPackageVersion)" Overwrite="true" Encoding="UTF-8" />
5959
<WriteLinesToFile File="TELBlazorPackageVersion/VersionInfo.cs" Lines="namespace TELBlazor.Components.TELBlazorPackageVersion { public static class VersionInfo { public static string TELBlazorPackageVersion = &quot;$(TELBlazorPackageVersion)&quot; %3B; } }" Overwrite="true" Encoding="UTF-8" />
6060
</Target>
61-
<!--Exclude for release so consuming projects responsible for providing the css to prevent duplication-->
62-
<Target Name="RunGulp" BeforeTargets="PrepareForBuild" Condition="'$(Configuration)' != 'Release'">
61+
62+
<Target Name="RunGulp" BeforeTargets="PrepareForBuild">
6363
<Exec Command="npx gulp" WorkingDirectory="$(ProjectDir)" />
6464
</Target>
65+
<!--Exclude from the release package so consuming projects responsible for providing the css to prevent duplication-->
66+
<ItemGroup Condition="'$(Configuration)' == 'Release'">
67+
<Content Update="wwwroot\css\nhsuk.css" Pack="false" />
68+
</ItemGroup>
6569
</Project>
6670

0 commit comments

Comments
 (0)