feat: fix pub.dev OAuth credentials path in publishing workflow#79
Merged
feat: fix pub.dev OAuth credentials path in publishing workflow#79
Conversation
Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
|
|
1 similar comment
|
|
Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix pub.dev issue in dependency resolution
Fix pub.dev OAuth credentials path in publishing workflow
Nov 18, 2025
hsluoyz
added a commit
that referenced
this pull request
Nov 18, 2025
github-actions bot
pushed a commit
that referenced
this pull request
Nov 18, 2025
# [1.6.0](v1.5.0...v1.6.0) (2025-11-18) ### Features * fix pub.dev OAuth credentials path in publishing workflow ([#79](#79)) ([ece281c](ece281c))
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.
The CI workflow was failing to publish to pub.dev with OAuth2 authorization errors because
dart pub publishcouldn't locate the credentials file.Changes
~/.config/dart/pub-credentials.json→~/.pub-cache/credentials.jsonPUB_CREDENTIALSmust be configured as a repository secretThe Dart pub tool expects credentials at
~/.pub-cache/credentials.jsonby default. The previous location caused the tool to fall back to interactive OAuth, which fails in CI.Original prompt
This section details on the original issue you should resolve
<issue_title>[bug] fix pub.dev issue</issue_title>
<issue_description>see: https://github.com/casbin/dart-casbin/actions/runs/19476622103/job/55738050315