Skip to content

Commit c485c6b

Browse files
Fix missing static web assets in NuGet package
The Razor SDK generates the static web assets manifest at dotnet build time. Previously, npm run build (which outputs the JS files to wwwroot/) ran after dotnet build, so the manifest was generated with an empty wwwroot/ and dotnet pack --no-build reused that stale manifest. Fix by moving the npm install/lint/build steps before dotnet restore and dotnet build, ensuring the compiled JS files exist in wwwroot/ when the static web assets manifest is generated. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 368233f commit c485c6b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ jobs:
3636
uses: gittools/actions/gitversion/setup@v0.9.11
3737
with:
3838
versionSpec: '5.x'
39-
- name: Install dependencies
40-
run: dotnet restore ./src/AzureMapsControl.Components/AzureMapsControl.Components.csproj
41-
- name: Build
42-
run: dotnet build --configuration Release --no-restore ./src/AzureMapsControl.Components/AzureMapsControl.Components.csproj
43-
- name: Test
44-
run: dotnet test ./tests/AzureMapsControl.Components.Tests/AzureMapsControl.Components.Tests.csproj
4539
- name: NPM Install
4640
run: cd ./src/AzureMapsControl.Components && npm i
4741
- name: Lint
4842
run: cd ./src/AzureMapsControl.Components && npm run lint
4943
- name: Build Typescript
5044
run: cd ./src/AzureMapsControl.Components && npm run build
45+
- name: Install dependencies
46+
run: dotnet restore ./src/AzureMapsControl.Components/AzureMapsControl.Components.csproj
47+
- name: Build
48+
run: dotnet build --configuration Release --no-restore ./src/AzureMapsControl.Components/AzureMapsControl.Components.csproj
49+
- name: Test
50+
run: dotnet test ./tests/AzureMapsControl.Components.Tests/AzureMapsControl.Components.Tests.csproj
5151
- name: Use GitVersion
5252
id: gitversion # step id used as reference for output values
5353
uses: gittools/actions/gitversion/execute@v0.9.11

0 commit comments

Comments
 (0)