feat(release): document develop-based stable release previews
- Release preview workflow: - document that the dry-run preview evaluates `develop` or another selected ref as a candidate promotion onto `main` - explain that the preview now reports the included `main..candidate` commit range alongside the computed semantic version - Stable publish flow: - update the maintainer guide to reflect the current release-main to publish-release handoff instead of the older tag-trigger description - remove stale bootstrap-baseline guidance that no longer matches the live stable release history
This commit is contained in:
@@ -37,7 +37,7 @@ Release behavior is based on commit history since the last stable tag:
|
|||||||
- `BREAKING CHANGE:` triggers a major release.
|
- `BREAKING CHANGE:` triggers a major release.
|
||||||
- `docs:`, `ci:`, `build:`, `chore:`, `test:`, and `style:` appear in notes but do not trigger a release on their own.
|
- `docs:`, `ci:`, `build:`, `chore:`, `test:`, and `style:` appear in notes but do not trigger a release on their own.
|
||||||
|
|
||||||
The current seeded baseline is `v2.2.1`, so the next patch release should be `v2.2.2`.
|
The next version is always computed from the latest stable tag already reachable from `main`.
|
||||||
|
|
||||||
## Recommended Maintainer Flow
|
## Recommended Maintainer Flow
|
||||||
|
|
||||||
@@ -48,13 +48,16 @@ Run the `Release - Dry Run Preview` workflow from the Actions tab.
|
|||||||
This workflow is defined in [`.github/workflows/release-preview.yml`](../.github/workflows/release-preview.yml) and accepts:
|
This workflow is defined in [`.github/workflows/release-preview.yml`](../.github/workflows/release-preview.yml) and accepts:
|
||||||
|
|
||||||
- `ref`
|
- `ref`
|
||||||
Default: `main`
|
Default: `develop`
|
||||||
|
|
||||||
|
The preview workflow treats the selected `ref` as a candidate promotion onto `main`. It verifies that the selected commit already contains the current `main` history, then runs `semantic-release --dry-run` against that candidate state.
|
||||||
|
|
||||||
Use it to confirm:
|
Use it to confirm:
|
||||||
|
|
||||||
- whether a release will be created,
|
- whether a release will be created,
|
||||||
- what the next version will be,
|
- what the next version will be,
|
||||||
- and how the release notes will be grouped.
|
- how the release notes will be grouped,
|
||||||
|
- and which commits are included in the `main..candidate` release range.
|
||||||
|
|
||||||
### 2. Merge or push the release-worthy change set to `main`
|
### 2. Merge or push the release-worthy change set to `main`
|
||||||
|
|
||||||
@@ -76,9 +79,9 @@ If a release is warranted, `release-main.yml` will:
|
|||||||
|
|
||||||
If no release is warranted, the workflow exits without tagging or publishing.
|
If no release is warranted, the workflow exits without tagging or publishing.
|
||||||
|
|
||||||
### 4. Let the tag publish the release artifacts
|
### 4. Let the stable publish job release the artifacts
|
||||||
|
|
||||||
When `semantic-release` creates the tag, that tag triggers [`.github/workflows/publish-release.yml`](../.github/workflows/publish-release.yml).
|
When `semantic-release` creates a release, [`.github/workflows/release-main.yml`](../.github/workflows/release-main.yml) directly invokes [`.github/workflows/publish-release.yml`](../.github/workflows/publish-release.yml) with the resolved release tag and commit SHA.
|
||||||
|
|
||||||
That workflow will:
|
That workflow will:
|
||||||
|
|
||||||
@@ -106,6 +109,5 @@ Use the preview-image workflow if you want a one-off test image without creating
|
|||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
- The bootstrap tag `v2.2.1` is intentionally ignored by the stable image publish workflow so it does not back-publish an old release.
|
|
||||||
- Stable releases are driven by commit history on `main`, not by labels or manual version bump inputs.
|
- Stable releases are driven by commit history on `main`, not by labels or manual version bump inputs.
|
||||||
- If you need to understand why a release did or did not happen, start with the `Release - Dry Run Preview` workflow and then inspect the `semantic-release` output.
|
- If you need to understand why a release did or did not happen, start with the `Release - Dry Run Preview` workflow and then inspect the `semantic-release` output.
|
||||||
|
|||||||
Reference in New Issue
Block a user