Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/RELEASE_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ This guide explains how to set up automatic publishing to Packagist using GitHub
Releases are driven by [release-please](https://github.com/googleapis/release-please).
The Releases section of `README.md` is the reference; the short version is that merging
a PR with a conventional title updates a bot-authored Release PR, and merging that
Release PR runs the suite, creates the tag and the GitHub Release, and announces the tag
to Packagist.
Release PR, once a reviewer of the `release` environment approves the release run,
creates the tag and the GitHub Release and announces the tag to Packagist.

### Manual Publishing (if needed)

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ jobs:
&& (needs.tests.result == 'success' || needs.tests.result == 'skipped') }}
runs-on: { group: github-public-amd64 }
timeout-minutes: 5
# A person approves every release before it is tagged, since Packagist reads a tag as soon as it exists.
environment: release
permissions:
contents: write
issues: write
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ Releases are driven by [release-please](https://github.com/googleapis/release-pl
- Its runs are created held at `action_required` until someone clicks **Approve and
run**, because release-please opens the PR with `GITHUB_TOKEN`. The unit lane then
reports `skipped` and `🧪 Tests` goes green without running a test. The skip only applies while the diff is nothing but what release-please writes, down to the version line in each version file, so a code or dependency change pushed onto a Release PR by hand runs the unit lane like any other PR.
- Merging the Release PR creates the tag and the GitHub Release on that merge commit and announces the tag to Packagist, with no further test run: the Release PR adds only the version bump and changelog to an already-tested `master`. A hotfix release from `N.x` runs the unit lane first, since its commits were pushed without a PR. A tag and a GitHub Release cannot be withdrawn.
- Merging the Release PR starts a release run that waits for a reviewer of the `release` environment to approve it. It then creates the tag and the GitHub Release on that merge commit and announces the tag to Packagist, with no further test run: the Release PR adds only the version bump and changelog to an already-tested `master`. A hotfix release from `N.x` runs the unit lane first, since its commits were pushed without a PR. A tag and a GitHub Release cannot be withdrawn.

Packagist reads the tags itself, so the announce step only asks it to look now rather
than on its own schedule. If it fails or the credentials are unset, the release still
Expand Down
Loading