Skip to content
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

Docs: How to publish a package to pub.dev #22

Closed
4 tasks done
nelsonic opened this issue Nov 9, 2022 · 13 comments · Fixed by #23
Closed
4 tasks done

Docs: How to publish a package to pub.dev #22

nelsonic opened this issue Nov 9, 2022 · 13 comments · Fixed by #23
Assignees
Labels
awaiting-review discuss documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed priority-1 T4h technical

Comments

@nelsonic
Copy link
Member

nelsonic commented Nov 9, 2022

We have published packages in several languages most recently in Elixir and JavaScript
and documented the process extensively: code-reuse-hexpm.md

Todo

@nelsonic
Copy link
Member Author

Reading the docs now: https://dart.dev/tools/pub/publishing 👀

@LuchoTurtle
Copy link
Member

LuchoTurtle commented Nov 29, 2022

Focus on creating a verified publisher. That way I can use my personal account to publish packages at whim and transfer it to the verified dwyl publisher.

@nelsonic
Copy link
Member Author

image

@nelsonic
Copy link
Member Author

This is a bit of a detour / side-quest ... dwyl/hq#573

@nelsonic
Copy link
Member Author

image

Error:

image

@nelsonic
Copy link
Member Author

Looks like it's a waiting game ... ⏳

image

Going to have to let this work in the background while I get some sleep ... 😴

@nelsonic
Copy link
Member Author

Continue: https://pub.dev/my-publishers

@nelsonic
Copy link
Member Author

Appears to have worked. 🤞

image

An example of a Pointless/Terrible use of a Modal 🤦‍♂️

@nelsonic
Copy link
Member Author

dart pub publish --dry-run

Output:

Publishing dart_multihash 0.0.1 to https://pub.dartlang.org:
|-- .github
|   '-- ci.yml
|-- .gitignore
|-- CHANGELOG.md
|-- LICENSE
|-- README.md
|-- analysis_options.yaml
|-- dart_multihash.iml
|-- lib
|   |-- dart_multihash.dart
|   '-- src
|       |-- constants.dart
|       |-- models.dart
|       '-- varintUtils.dart
|-- pubspec.yaml
'-- test
    |-- dart_multihash_test.dart
    '-- dart_varint_test.dart

Package has 0 warnings.

@nelsonic
Copy link
Member Author

@LuchoTurtle please see: dwyl/dart_multihash#1 (comment) 🙏

@nelsonic
Copy link
Member Author

Still BLOCKED? ⏳

@LuchoTurtle
Copy link
Member

Created the PR that fixes this issue.
Adds a new file detailing the steps to getting a package published.

#23

@nelsonic
Copy link
Member Author

nelsonic commented Dec 1, 2022

Thanks. Will take a look when back at my desk. 👌

LuchoTurtle added a commit that referenced this issue Dec 6, 2022
Co-authored-by: Nelson <194400+nelsonic@users.noreply.github.com>
LuchoTurtle added a commit that referenced this issue Dec 6, 2022
Co-authored-by: Nelson <194400+nelsonic@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review discuss documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed priority-1 T4h technical
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants