Skip to content

Conversation

@liamgold
Copy link
Owner

@liamgold liamgold commented Dec 3, 2025

  • Add src/Client/dist/* to .gitignore to exclude built artifacts from source control
  • Remove previously committed dist files from git tracking
  • Update CI and Publish workflows to build client assets before .NET build
  • Add Node.js 22 setup step to both workflows
  • Add .nvmrc file to specify Node version 22 for consistent development environments
  • Add engines field to package.json requiring Node >=22

This ensures the NuGet package includes compiled JavaScript files by building them during CI/CD, preventing issues where dist folder lacks compiled assets.

🤖 Generated with Claude Code

- Add src/Client/dist/* to .gitignore to exclude built artifacts from source control
- Remove previously committed dist files from git tracking
- Update CI and Publish workflows to build client assets before .NET build
- Add Node.js 22 setup step to both workflows
- Add .nvmrc file to specify Node version 22 for consistent development environments
- Add engines field to package.json requiring Node >=22

This ensures the NuGet package includes compiled JavaScript files by building them during CI/CD, preventing issues where dist folder lacks compiled assets.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings December 3, 2025 21:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ensures that compiled JavaScript assets are included in the NuGet package by building client assets during CI/CD workflows. The changes prevent issues where the dist folder would lack compiled assets by explicitly building them before the .NET build step.

Key Changes:

  • Configure Node.js version 22 requirements via .nvmrc and package.json engines field
  • Update CI and Publish workflows to build client assets before .NET operations
  • Bump package version to 2.7.1

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/XperienceCommunity.Sustainability.csproj Increments package version to 2.7.1
src/Client/package.json Adds Node.js >=22 engine requirement
.nvmrc Specifies Node version 22 for consistent development environments
.github/workflows/publish.yml Adds Node.js setup and client asset build steps before .NET build
.github/workflows/ci.yml Adds Node.js setup and client asset build steps before .NET build

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@liamgold liamgold merged commit c0adf94 into main Dec 3, 2025
5 checks passed
@liamgold liamgold deleted the fix/build-client-assets-in-ci branch December 3, 2025 21:54
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.

2 participants