actions-marketplace-validations/Dart and Flutter Package Publisher
Continuously Test & Publish Dart and Flutter Package To Pub.dev When Version Changed
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Apr 15, 2025
- License
- MIT
Pinned Snippet
uses: actions-marketplace-validations/k-paxian_dart-package-publisher@8fdba1dbf624c712706281a6f91cb50b6bfc2eaf # no releases — HEAD as of 2026-07-10tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| accessToken | (Required) Token from ~/.pub-cache/credentials.json. Use secrets.OAUTH_ACCESS_TOKEN | yes | — |
| refreshToken | (Required) Token from ~/.pub-cache/credentials.json. Use secrets.OAUTH_REFRESH_TOKEN | yes | — |
| credentialJson | (Optional) Overrides accessToken and refreshToken. Whole content of ~/.pub-cache/credentials.json. Use secrets.CREDENTIAL_JSON | no | — |
| relativePath | (Optional) Path to your package root in your repository | no | "" |
| dryRunOnly | (Optional) Perform dry run only, no real publishing | no | false |
| testRunOnly | (Optional) Perform unit tests run only, no real publishing | no | false |
| skipTests | (Optional) Skip unit tests run | no | false |
| suppressBuildRunner | (Optional) Suppress using `build_runner` for unit tests run | no | false |
| format | (Optional) Format code of project to get better score in pub.dev | no | false |
| force | (Optional) Force publishing even if pub tool throws warnings, hints, etc | no | false |
| flutter | (Optional) Flutter package type | no | false |
| flutterBranch | (Optional) Flutter branch to use, stable, master, main, dev, etc. | no | stable |
Outputs
| name | description |
|---|---|
| success | Result, "true" if actual publishing happened, "false" otherwise |
| package | Package name from pubspec |
| localVersion | Package local version from pubspec |
| remoteVersion | Package remote version from pub.dev |
| dartVersion | Dart SDK version which is being used to run tests & publish |
| flutterVersion | Flutter SDK version which is being used to run tests & publish |