Publish Dart Packages
Suppose you have a Dart package and want to publish it to the newly created Dart package repository using:
Publish packages using dart command-line tool
Specify the repository URL and an access token for the
darttool:dart pub token add https://dart.pkg.jetbrains.space/mycompany/p/projectkey/mydarthttps://dart.pkg.jetbrains.space/mycompany/p/projectkey/mydartis the repository URLmycompanyis the name of your company in Space,mydartis the repository name.
If you are not sure about the URL, you can copy the URL of a particular repository on the Packages page.
When asked for a token, specify your personal access token. You can manage the created token on the My Profile | Security | Personal Tokens page.
Open the directory with your Dart project.
In the project's pubspec.yml file, add the repository URL:
publish_to: https://dart.pkg.jetbrains.space/mycompany/p/projectkey/mydartPublish the package to the repository:
dart pub publish
Publish Dart packages from Space Automation
For the instructions on how to publish Dart packages from Space Automation, refer to Space Automation examples.