Skip to content

Fix CLI publish workflow for nested package#94

Merged
leehack merged 1 commit into
mainfrom
fix/cli-publish-workflow
May 5, 2026
Merged

Fix CLI publish workflow for nested package#94
leehack merged 1 commit into
mainfrom
fix/cli-publish-workflow

Conversation

@leehack
Copy link
Copy Markdown
Owner

@leehack leehack commented May 5, 2026

Summary

Fix the mcp_dart_cli publish workflow so nested package releases are published from a clean temporary copy of the repository instead of directly from packages/mcp_dart_cli inside the Git checkout.

The failed mcp_dart_cli-v0.1.7 release produced an effectively empty archive (<1 KB) and pub.dev validation then reported missing pubspec.yaml, LICENSE, README.md, CHANGELOG.md, and bin/mcp_dart.dart. The files were present; dart pub publish was packaging the nested package incorrectly from the Git worktree.

This workflow now preserves normal top-level mcp_dart publishing, while CLI tags copy the repo to $RUNNER_TEMP, remove Git/build/cache metadata, and publish from the copied packages/mcp_dart_cli directory. Keeping the full repo layout preserves the CLI package's existing mcp_dart path override during release validation.

Validation

  • Parsed .github/workflows/publish.yml as YAML locally.
  • Reproduced the workflow copy approach under /private/tmp.
  • Ran dart pub publish --dry-run from the copied packages/mcp_dart_cli directory.
  • Verified the dry-run now builds a real 24 KB archive containing the expected package files and reports 0 warnings with only the existing dependency override hint.

@leehack leehack changed the title [codex] Fix CLI publish workflow for nested package Fix CLI publish workflow for nested package May 5, 2026
@leehack leehack marked this pull request as ready for review May 5, 2026 01:35
@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.64%. Comparing base (bac25a4) to head (d79cdcd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #94   +/-   ##
=======================================
  Coverage   80.64%   80.64%           
=======================================
  Files          43       43           
  Lines        5801     5801           
=======================================
  Hits         4678     4678           
  Misses       1123     1123           
Flag Coverage Δ
unittests 80.64% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@leehack leehack merged commit 2d32beb into main May 5, 2026
6 checks passed
@leehack leehack deleted the fix/cli-publish-workflow branch May 5, 2026 01:38
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