Update the version number in your
pubspec.yamlfile.Run the following command from the project root folder:
dart pub publish
Note
When manually publishing Dart and Flutter packages via the UI or REST API, they must be deployed to pub repositories according to the structure <PACKAGE_NAME>/<PACKAGE_NAME>-<VERSION>.tar.gz, otherwise they will not be indexed.
The dart pub publish command automatically handles proper structure and formatting.