The dart team has this official guide for how to automate the publishing of a package to pub.dev: https://dart.dev/tools/pub/automated-publishing Maybe we should look into migrating and using this approach instead.