Skip to content

Commit 52bf7ce

Browse files
Fix missing static web assets in NuGet package (#118)
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 7ba2caf commit 52bf7ce

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)