Skip to content

Releasing a new version of packages

Alex Li edited this page Mar 23, 2023 · 1 revision

The repo uses a specific issue and a corresponding tool with GitHub Actions to publish new versions of packages.

Notice: Only users with write access to the repo can make publishes. Typically users in cfug/devs.

Before start

  • Make sure the package has something that needs to be published.
  • Make sure the CHANGELOG.md has the Unreleased section.
  • Don't modify/add any version title in the CHANGELOG.md.

Get started

To publish a new package version, add a comment in the issue.

Comments should follow this format: $name: v$version For example: dio: v5.0.0.

  • The name should be one of [dio, cookie_manager, http2_adapter, native_dio_adapter].
  • The version should follow the semantic version standard.

After comments are created, the workflow will:

  • Push to update CHANGELOG.md and pubspec.yaml.
  • Push a tag and make a release.
  • Publish the package to pub.dev.
Clone this wiki locally