diff --git a/.github/workflows/publish_internal.yaml b/.github/workflows/publish_internal.yaml new file mode 100644 index 00000000..1dad7d74 --- /dev/null +++ b/.github/workflows/publish_internal.yaml @@ -0,0 +1,42 @@ +# A CI configuration to auto-publish pub packages from dart-lang/ecosystem. + +# We don't use the regular publish.yaml script here in order to dogfood the +# publishing code at head. + +name: Publish + +on: + pull_request: + branches: [ main ] + push: + tags: [ '[A-z]+-v[0-9]+.[0-9]+.[0-9]+*' ] + +jobs: + publish: + if: github.repository_owner == 'dart-lang' + + # These permissions are required for authentication using OIDC and to enable + # us to create comments on PRs. + permissions: + id-token: write + pull-requests: write + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b + - uses: dart-lang/setup-dart@a57a6c04cf7d4840e88432aad6281d1e125f0d46 + + - name: Pub get + working-directory: pkgs/firehose + run: dart pub get + + - name: Validate packages + if: ${{ github.event_name == 'pull_request' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE_NUMBER: ${{ github.event.number }} + run: dart pkgs/firehose/bin/firehose.dart --validate + + - name: Publish tagged package + if: ${{ github.event_name == 'push' }} + run: dart pkgs/firehose/bin/firehose.dart --publish diff --git a/pkgs/dart_flutter_team_lints/README.md b/pkgs/dart_flutter_team_lints/README.md index 89836f58..3b34860b 100644 --- a/pkgs/dart_flutter_team_lints/README.md +++ b/pkgs/dart_flutter_team_lints/README.md @@ -1,4 +1,5 @@ [![pub package](https://img.shields.io/pub/v/dart_flutter_team_lints.svg)](https://pub.dev/packages/dart_flutter_team_lints) +[![package publisher](https://img.shields.io/pub/publisher/dart_flutter_team_lints.svg)](https://pub.dev/packages/dart_flutter_team_lints/publisher) ## What is this? diff --git a/pkgs/firehose/CHANGELOG.md b/pkgs/firehose/CHANGELOG.md index 8e0a196b..dee5dc24 100644 --- a/pkgs/firehose/CHANGELOG.md +++ b/pkgs/firehose/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.3.8 + +- Updated the pubspec `repository` field to reflect the new source location. + ## 0.3.7+1 - Fix an issue in the `.github/workflows/publish.yaml` workflow file. diff --git a/pkgs/firehose/README.md b/pkgs/firehose/README.md index 87057983..63ce22e2 100644 --- a/pkgs/firehose/README.md +++ b/pkgs/firehose/README.md @@ -1,4 +1,5 @@ [![pub package](https://img.shields.io/pub/v/firehose.svg)](https://pub.dev/packages/firehose) +[![package publisher](https://img.shields.io/pub/publisher/firehose.svg)](https://pub.dev/packages/firehose/publisher) ## What's this? @@ -75,3 +76,8 @@ jobs: publish: uses: dart-lang/ecosystem/.github/workflows/publish.yml@main ``` + +## Workflow docs + +The description of the common workflow for repos using this tool can be found at +https://github.com/dart-lang/ecosystem/wiki/Publishing-automation. diff --git a/pkgs/firehose/pubspec.yaml b/pkgs/firehose/pubspec.yaml index 99263659..c88cfbf5 100644 --- a/pkgs/firehose/pubspec.yaml +++ b/pkgs/firehose/pubspec.yaml @@ -1,6 +1,6 @@ name: firehose description: A tool to automate publishing of Pub packages from GitHub actions. -version: 0.3.7+1 +version: 0.3.8 repository: https://github.com/dart-lang/ecosystem/tree/main/pkgs/firehose environment: