k-paxian / dart-package-publisher

Action to Publish Dart / Flutter Package To https://pub.dev When you need to publish a package, just bump the version in pubspec.yaml
MIT License
66 stars 10 forks source link

Support for hosted packages #29

Open pavanpodila opened 7 months ago

pavanpodila commented 7 months ago

Hello @k-paxian, could you add support for hosted packages which take a token for authentication. This could be an additional parameter. Currently it fails with the following errors:

https://dart.pkg.jetbrains.space/vyuh/p/main/vyuh/ package repository requested authentication!
You can provide credentials using:
    flutter pub token add https://dart.pkg.jetbrains.space/vyuh/p/main/vyuh/
Authentication failed!

For the check for remote version, it does not consider the fact that the package is hosted and does a global activation using pub.dev, as seen below:

Because pub global activate depends on vyuh_analytics_provider_firebase any which doesn't exist (could not find package vyuh_analytics_provider_firebase at https://pub.dev),/ version solving failed.
Notice: Local version: [1.0.0]
Notice: Remote version: [✗]