Skip to content

ci: Build frontend assets before packing in release workflow#303

Merged
rickbutterfield merged 1 commit into
v5/devfrom
v5/ci/release-frontend-build
Jun 30, 2026
Merged

ci: Build frontend assets before packing in release workflow#303
rickbutterfield merged 1 commit into
v5/devfrom
v5/ci/release-frontend-build

Conversation

@rickbutterfield

Copy link
Copy Markdown
Owner

Problem

The release workflow only runs dotnet build, and the RCL .csproj assumes the client assets are already built to wwwroot (the .esproj sets ShouldRunBuildScript/ShouldRunNpmInstall to false). The compiled bundle is committed to the repo, and git log shows it was last rebuilt at eda75ac "Set version to '5.4.0'".

As a result every release since 5.4.0 has shipped a stale frontend bundle. As reported on #293 and #300, 5.4.1's index.js is byte-identical (same SHA256) to 5.4.0's and is missing the merged 5.4.x source fixes (#293, #294, #297, …). The TypeScript fixes were merged but never recompiled/committed.

Fix

Add a Node.js setup step (Node 22.12.0, matching package.json engines) plus npm ci && npm run build in the UI project before the dotnet build, so the package always contains a freshly compiled frontend and the bundle can't silently go stale again.

Notes

🤖 Generated with Claude Code

The release workflow only ran `dotnet build`, and the .csproj assumes the
client assets are already built to wwwroot (the .esproj has
ShouldRunBuildScript/ShouldRunNpmInstall disabled). The compiled bundle is
committed and was last rebuilt for 5.4.0, so every release since shipped a
stale frontend — e.g. 5.4.1's index.js is byte-identical to 5.4.0's and is
missing the merged 5.4.x fixes (#293, #294, #297, ...).

Add a Node.js setup step plus `npm ci && npm run build` before the dotnet
build so the package always contains a freshly compiled frontend.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rickbutterfield rickbutterfield merged commit 8e99a51 into v5/dev Jun 30, 2026
4 checks passed
@rickbutterfield rickbutterfield deleted the v5/ci/release-frontend-build branch June 30, 2026 14:54
rickbutterfield added a commit that referenced this pull request Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant