| # A CI configuration to auto-publish pub packages. | |
| name: Publish | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| # Match <package-name>-v<version> publish tags | |
| tags: [ '[A-z0-9]+-v[0-9]+.[0-9]+.[0-9]+' ] | |
| jobs: | |
| publish: | |
| if: ${{ github.repository_owner == 'dart-lang' }} | |
| uses: dart-lang/ecosystem/.github/workflows/publish.yaml@fc3dd9a17a8e18b3b4aa5abac8a0f4a679fe2d57 | |
| with: | |
| write-comments: false | |
| permissions: | |
| id-token: write | |
| pull-requests: write |