Skip to content

Fix build-container publish failure by installing Tailwind CLI from npm - #7

Open
mythz with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-build-container-job
Open

Fix build-container publish failure by installing Tailwind CLI from npm#7
mythz with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-build-container-job

Conversation

Copilot AI commented Aug 13, 2026

Copy link
Copy Markdown

The build-container workflow was failing during dotnet publish because MyApp's postinstall.js fell back to downloading the standalone Tailwind binary from GitHub, and that network-dependent path failed in Actions. This change makes the Tailwind CLI available through npm so publish no longer depends on that external binary download.

  • Root cause

    • MyApp/package.json did not provide a local tailwindcss CLI.
    • During npm install, postinstall.js attempted to fetch the latest standalone Tailwind binary from GitHub and aborted when that download failed.
  • Change

    • Added npm-managed dev dependencies in MyApp/package.json:
      • @tailwindcss/cli
      • tailwindcss
  • Effect on publish/build flow

    • tailwindcss is now present in PATH during npm install.
    • postinstall.js detects the CLI and skips the remote binary download path.
    • Existing ui:build and publish behavior remain unchanged.
{
  "devDependencies": {
    "@tailwindcss/cli": "^4.1.18",
    "tailwindcss": "^4.1.18"
  }
}

Co-authored-by: mythz <89361+mythz@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'build-container' Fix build-container publish failure by installing Tailwind CLI from npm Aug 13, 2026
Copilot AI requested a review from mythz August 13, 2026 01:22
@mythz
mythz marked this pull request as ready for review August 13, 2026 01:23
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