File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed
Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 2727 if : ${{ steps.release.outputs.release_created }}
2828 run : |
2929 major="${{ steps.release.outputs.major }}"
30- tag="v${major}"
30+ minor="${{ steps.release.outputs.minor }}"
31+ tag_major="v${major}"
32+ tag_minor="v${major}.${minor}"
3133 git config user.name "github-actions[bot]"
3234 git config user.email "github-actions[bot]@users.noreply.github.com"
33- git tag -f "$tag"
34- git push -f origin "$tag"
35+ git tag -f "$tag_major"
36+ git tag -f "$tag_minor"
37+ git push -f origin "$tag_major" "$tag_minor"
Original file line number Diff line number Diff line change @@ -135,11 +135,24 @@ engine-strict=true
135135- Release Please runs on ` push ` to ` main ` (and manual dispatch).
136136- Version tags:
137137 - ` vX.Y.Z ` (annotated release tag)
138- - ` vX ` ( and optionally ` vX.Y ` ) advanced on release
138+ - ` vX ` and ` vX.Y ` moving tags, force-updated on each release
139139
140140** Rationale**
141141- GitHub Action consumers should be able to pin to a major (` @v1 ` ) while receiving compatible updates.
142142- Release Please is the single source of truth for versions and changelogs.
143+ - Moving tags are managed by the release workflow via ` git tag -f ` + ` git push -f ` when a release is actually created.
144+
145+ ** Protocol**
146+ - Only the Release Please workflow updates ` vX ` and ` vX.Y ` .
147+ - Moving tags are updated only on release creation (not on release PR creation).
148+ - Do not create or move ` vX ` /` vX.Y ` manually; if a manual release is needed, use a ` Release-As: X.Y.Z ` commit to drive Release Please.
149+
150+ ** Example (Release-As footer)**
151+ ```
152+ chore: add social preview images
153+
154+ Release-As: 1.1.1
155+ ```
143156
144157---
145158
Original file line number Diff line number Diff line change 11{
22 "packages" : {
33 "." : {
4- "release-type" : " simple " ,
4+ "release-type" : " node " ,
55 "package-name" : " github-api-usage-monitor" ,
66 "changelog-path" : " CHANGELOG.md" ,
77 "include-component-in-tag" : false ,
You can’t perform that action at this time.
0 commit comments