From 447b920bef582d44dc16b9d0efc7b9e0e7f10e4e Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 6 Aug 2026 03:41:23 +0000 Subject: [PATCH] ci: allow tag push to trigger pub.dev release testing - Updates `test.yml` so that creating a dummy tag like `v0.7.1-test` will trigger the OIDC publish job for verification. - Updates `README.md` to explicitly state the requirement for enabling GitHub Actions in the pub.dev administration page for OIDC publishing without a secret. Co-authored-by: assassinaj602 <150547310+assassinaj602@users.noreply.github.com> --- .github/workflows/test.yml | 2 +- README.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 78d4252..dca8adf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -88,7 +88,7 @@ jobs: id-token: write runs-on: ubuntu-latest needs: [test, example] - if: github.event_name == 'release' + if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/') steps: - name: Checkout diff --git a/README.md b/README.md index 26aa021..84b1eb0 100644 --- a/README.md +++ b/README.md @@ -554,6 +554,8 @@ if (!report.passed) { ``` A GitHub Actions workflow for CI is included in the repository at `.github/workflows/test.yml`. +> **Note on OIDC Publishing:** The included CI workflow uses OIDC authentication (`permissions: id-token: write`) to publish to pub.dev. For this to work, you must enable automated publishing for your package via GitHub Actions in your package's admin settings on pub.dev. No `PUB_CREDENTIALS` secret is required! + ---