Use this checklist before publishing bdk_dart to pub.dev.
- In the package Admin tab, enable publishing from GitHub Actions for
bitcoindevkit/bdk-dartwith tag patternv{{version}}. - In the same pub.dev settings, require the GitHub Actions environment
pub.dev. - In the GitHub repository settings, create the
pub.devenvironment and configure required reviewers. If the maintainer who pushes the tag will also approve publication, leave Prevent self-review disabled. - Restrict the environment's deployment tags to the release tags and configure repository tag rules to limit who can create or change them.
- Merge
.github/workflows/publish.ymland the reusable CI configuration before creating a release tag.
The workflow handles stable tags and prerelease tags such as v1.0.0-rc.4.
It checks the tag against pubspec.yaml, runs the full CI workflow on the tagged
commit, and then waits for environment approval. The official Dart publishing
workflow performs a dry run and publishes using a short-lived OIDC token; no
stored pub.dev credentials are needed.
Creating the environment alone does not enable approval: required reviewers must be configured. Confirm that this protection is available and enabled for the repository before relying on the approval step.
See Dart's automated publishing documentation.
-
pubspec.yamlincludes a cleardescription. -
pubspec.yamlincludeslicenseand it matches repository licensing. -
pubspec.yamlincludeshomepage. -
pubspec.yamlincludesrepository. -
pubspec.yamlincludesissue_tracker. - Version is bumped to the intended release version.
- Native and bindings changes are finalized.
-
lib/bdk.dartis regenerated if needed. -
scripts/generate_bindings.shsucceeds on a clean checkout.
Run all checks from repository root:
dart pub get
dart format --output=none --set-exit-if-changed lib test example bdk_demo/lib bdk_demo/test
dart analyze --fatal-infos --fatal-warnings lib test example
dart test
cd bdk_demo && flutter pub get && flutter analyze- All commands above pass locally.
- CI is green on
main.
-
README.mdis up to date for install and usage. -
SUPPORTED_TARGETS.mdis up to date. - Changelog/release notes are prepared.
- Release tag/version plan is confirmed with maintainers.
dart pub publish --dry-run- Dry run passes with no unexpected warnings/errors.
- Create and push the release tag from the reviewed release commit on
main(for example,v1.0.0-rc.4for package version1.0.0-rc.4). Pushing the tag starts publication; creating a GitHub release for an existing tag does not start a new tag-push run. - Wait for the Publish to pub.dev workflow's version check and full CI validation to pass.
- Review the tagged commit and approve deployment to the
pub.devenvironment. - Confirm the publishing job's dry run and upload succeed. If a run fails, inspect its logs and pub.dev before retrying; do not move an existing release tag or attempt to overwrite a published version.
- Verify package page renders correctly on pub.dev.
- Verify version and metadata fields are correct.
- In a fresh sample project, pin the exact published version from pub.dev and trigger a Native Assets build.
- Announce release with release notes.
If automated publishing is unavailable, an authorized uploader can check out the
clean release tag and run dart pub publish --dry-run, then dart pub publish.
First ensure no automated publishing job is running or awaiting approval for the
same version. Do not approve that job after publishing manually.