MewsSystems / mews-flutter

Flutter and Dart open-source packages maintained by Mews.
59 stars 22 forks source link

ci: [DX-1806] Automate package publish on tag #628

Closed witwash closed 2 months ago

witwash commented 2 months ago

Summary

We need to set it up on the other end to allow this automation.

Testing steps

Follow-up issues

Tune this workflow and do the same for other packages that need to be published on pub.dev

Check during review

witwash commented 2 months ago

@ookami-kb, could you please enable it on the pub.dev admin side? 🙏 https://dart.dev/tools/pub/automated-publishing#configuring-automated-publishing-from-github-actions-on-pub-dev

ookami-kb commented 2 months ago

I would say, it should only run when the new version is merged into master.

witwash commented 2 months ago

Do you know if it is supported or I need to do hacks like this?

ookami-kb commented 2 months ago

IIRC, yeah, it requires some hacks. And I'm not sure if this specific solution will work when the tag is first pushed to feature branch, and then merged into master. So let's probably go with environments instead: https://dart.dev/tools/pub/automated-publishing#hardening-security-with-github-deployment-environments

witwash commented 2 months ago

@ookami-kb, I believe now you have to set up protection rules for the new environment. I've named it according to the example: pub.dev