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! + ---