Skip to content

fix(ci): add --no-example flag to dart pub get in publish workflow#19

Merged
dhruvanbhalara merged 1 commit intomainfrom
fix/publish_workflow
Mar 18, 2026
Merged

fix(ci): add --no-example flag to dart pub get in publish workflow#19
dhruvanbhalara merged 1 commit intomainfrom
fix/publish_workflow

Conversation

@dhruvanbhalara
Copy link
Copy Markdown
Owner

@dhruvanbhalara dhruvanbhalara commented Mar 12, 2026

Summary

Fixes the publish.yaml CI workflow by adding the --no-example flag to the dart pub get step, preventing it from resolving dependencies for the example project during the publishing pipeline.

Changes

  • .github/workflows/publish.yaml: Updated the Install dependencies step from dart pub get to dart pub get --no-example.

Why

The example project may have Flutter-specific dependencies that are not resolvable in a pure Dart SDK environment. Since the publish workflow only needs the library's own dependencies, skipping example resolution avoids unnecessary failures.

Updated the install dependencies step to exclude examples.
@dhruvanbhalara dhruvanbhalara self-assigned this Mar 12, 2026
@dhruvanbhalara dhruvanbhalara added the bug Something isn't working label Mar 12, 2026
@dhruvanbhalara dhruvanbhalara changed the title fix: Workflow fix fix(ci): add --no-example flag to dart pub get in publish workflow Mar 12, 2026
@dhruvanbhalara dhruvanbhalara merged commit 1ece4ee into main Mar 18, 2026
7 checks passed
@dhruvanbhalara dhruvanbhalara deleted the fix/publish_workflow branch March 18, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant