Commit 0de3533
authored
Fix publish workflow failing on the flutter_webrtc pin warning (#1140)
Every publish workflow run in this repo's history has failed with exit
code 65. The dart-lang reusable publish workflow runs a non-interactive
`dart pub publish`, which treats any validation warning as fatal. Our
exact `flutter_webrtc` pin is intentional (the native WebRTC-SDK pods
must match between the two packages) but always produces the 'should
allow more than one version' warning, so the workflow can never succeed
and every release so far has been published manually.
This replaces the reusable workflow with an inline job that publishes
with `--force`, which downgrades warnings to informational.
`dart-lang/setup-dart` is kept solely for pub.dev auth: with `id-token:
write` it mints a temporary pub.dev token from the GitHub OIDC token and
registers it in the shared pub config, which the Flutter-side `dart pub
publish` then picks up. The pub.dev trust configuration is based on
repository and tag claims, not the workflow definition, so no changes
are needed on the pub.dev side.1 parent f61a3a0 commit 0de3533
2 files changed
Lines changed: 48 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
0 commit comments