{"repo":"k-paxian/dart-package-publisher","free":true,"listed":false,"github":"https://github.com/k-paxian/dart-package-publisher","clone":"git clone https://github.com/k-paxian/dart-package-publisher.git","description":"Action to Publish Dart / Flutter Package To https://pub.dev When you need to publish a package, just bump the version in pubspec.yaml","language":"Shell","stars":68,"topics":["dart","pub","publish","package","action","dartlang","github-actions","actions","flutter","pubspec"],"license":"MIT","category":"mobile-apps","readme_excerpt":"[![Build Status][ci-badge]][ci-badge-url] Description Continuously Test & Publish Dart and Flutter Package To Pub.dev When Version Changed Prerequisite You have to be a [Verified Publisher][4] to be able to publish from GH action w/o Pub needs your authorization to upload packages on your behalf check in console. The Challenge Usually, when you are trying to pub lish your Dart package (or pub publish your Flutter package) and your pubspec.yaml has the same version as already published, you'll have a non zero exit code from pub tool and your workflow is red 🔴. So you cannot directly hook publish command as an re-action to on: push event. To keep a workflow green 🟢 on each push, you have to prevent publishing step if versions are the same, and to compare versions, you should have both of them, remote and local. This Action is intended to solve this challenge by continuously Test & Publish Dart/Flutter packages only IF local pubspec.yml has different version than already published on Pub.dev site. It's handy to hook it up on push [events][3]. and forget about it. When you need to publish a package, just bump the version in pubspec.yaml . The Firehose Finally, after 3 years of silence Google did that job in house :smile: [firehose][5] Inputs 📥 accessToken Required Google Account token from /.config/dart/pub-credentials.json Put it as secrets.OAUTH ACCESS TOKEN on your repo [secrets section][1] You can find the pub-credentials.json within .config/dart in the User's home directo","default_branch":null,"files":null,"tree":[],"storefront":"/r/k-paxian","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/k-paxian/dart-package-publisher/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}