littleGnAl / glance

An APM(Application Performance Monitoring) library for detecting UI jank in Flutter for mobile (Android/iOS) in production.
https://pub.dev/packages/glance
MIT License
19 stars 0 forks source link

[ci] Publish the package to pub.dev on push tags event #32

Closed littleGnAl closed 1 month ago

littleGnAl commented 1 month ago

Although I checked out the tag to publish to pub.dev, it still failed with the error:

The calling GitHub Action is not allowed to publish, because: publishing is only allowed from 'tag' refType, this token has 'branch' refType. See https://dart.dev/go/publishing-from-github

https://github.com/littleGnAl/glance/actions/runs/11040051016/job/30667088690

So I decided to publish the package to pub.dev on push tags event by following the official doc and test it in the next release.