Repository navigation
ci: publish to pub.dev on tag push, add RELEASING.md - #223
Merged
Merged
Conversation
MichaelGHSeg
marked this pull request as ready for review
October 16, 2026 18:30
didiergarcia
approved these changes
Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes
publish.ymlpublishable through pub.dev automated publishing, and adds aRELEASING.mddescribing the process as it actually runs. Supersedes #206, whose doc predates the CI publish workflow (#210).publish.ymlrelease: published. pub.dev automated publishing accepts only tag pushes andworkflow_dispatch; areleaseevent's OIDC token is rejected. Tag patterns:segment_analytics-v*andsegment_analytics_plugin_*-v*.packages/core, whatever the tag said.<pubspec name>-v<version>now maps to its package directory.metajob (.github/scripts/check-release-metadata.sh) runs before tests and before theproductionapproval. It fails the run if:<pubspec name>-v<pubspec version>CHANGELOG.mdsection doesn't match the pubspec versionlib/version.dartdoesn't match (it is sent ascontext.library.version)mainworkflow_dispatchpackageinput isn'tcoreorplugins/plugin_<name>(it reachesworking-directory)packages/corehas atest/directory;flutter testerrors without one. Same fix Harden CI: Artifactory OIDC, pinned Flutter SDK, pub.dev Trusted Publishing #210 made inci.yml.workflow_dispatchstays as a manual re-run path.RELEASING.mdRelease steps (release PR → dry run → tag → approve → verify), core-before-plugins ordering, the plugin constraint widening a core major requires, tag format, the one-time pub.dev and GitHub environment setup, the Flutter version bump checklist, and a local
dart pub publishbreak-glass.Testing
check-release-metadata.shrun locally againstmain:segment_analytics-v1.1.13(push)package=coresegment_analytics_plugin_idfa-v1.0.3(push)package=plugins/plugin_idfasegment_analytics_plugin_advertising_id-v1.0.0(push)plugins/plugin_firebase(dispatch)segment_analytics-v9.9.9(version mismatch)evil-v1.0.0,segment_analytics_plugin_..-v1.0.0PACKAGE=../x(dispatch)GITHUB_SHAnot onmainThe workflow itself has not run in Actions.
publish.ymlhas no run history at all, so the first real tag push is also the first test of the OIDC exchange with pub.dev.RELEASING.mdcovers the local-publish fallback.Setup status
<package>-v{{version}}pattern, push +workflow_dispatch, environmentproduction)productionenvironment with required reviewersproductiondeployment branches and tags limited tomainplus the two tag patterns (currently unrestricted; themetajob's on-maincheck covers the commit, but not which ref may request the environment)