Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ jobs:
flutter build ios --no-codesign --verbose
working-directory: example

- name: 🎯 Setup Dart for pub.dev publishing
if: startsWith(github.ref, 'refs/tags/v')
uses: dart-lang/setup-dart@v1

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep Flutter SDK dart for the publish command

This repository publishes a Flutter plugin (pubspec.yaml declares both dependencies: flutter and a Flutter SDK constraint), but this new step prepends a standalone Dart SDK right before dart pub publish --force. That shadows the Flutter-provided dart binary, which is the one the Dart team’s own publish workflow keeps for Flutter-package publication (it sets up Flutter after setup-dart specifically so Flutter’s dart is used). On tag builds, this can cause publish to fail for Flutter packages even though OIDC is configured.

Useful? React with 👍 / 👎.


- name: 🚀 Publish
if: startsWith(github.ref, 'refs/tags/v')
run: dart pub publish --force
Loading