Skip to content

Publish packages automatically after merge #378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
swift-kim opened this issue May 10, 2022 · 2 comments · Fixed by #394
Closed

Publish packages automatically after merge #378

swift-kim opened this issue May 10, 2022 · 2 comments · Fixed by #394
Assignees
Labels
ci Related to continuous integration

Comments

@swift-kim
Copy link
Member

swift-kim commented May 10, 2022

Currently the publication is manually done by human. We may add a workflow to the CI that does the following things.

  • Check for packages that need publishing (by comparing versions of local packages and packages on pub.dev).
  • Set up pub.dev credentials (accessToken and refreshToken).
  • Run pub publish --dry-run for each package on pull request.
  • Run pub publish for each package on push.

Basic idea: https://medium.com/evenbit/publishing-dart-packages-with-github-actions-5240068a2f7d

@swift-kim swift-kim added the ci Related to continuous integration label May 10, 2022
@swift-kim
Copy link
Member Author

We could make this a tool command similarly to flutter_plugin_tools' PublishPluginCommand.

We can't use their code as it is, and need to make some modifications. Especially we don't tag our releases, so related checks should be skipped.

@HakkyuKim
Copy link
Contributor

I also looked into this a few days ago, I'll work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Related to continuous integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants