Skip to content

Commit 7dc04a1

Browse files
committed
ci: mark beta releases as Latest
GitHub will not let a prerelease be Latest ("Drafts and prereleases cannot be set as latest"), and the prerelease flag is not separable from the -beta version: release-please derives it from the version itself. So clear the flag after publishing instead. The condition takes itself out of service once 2.0.0 ships, since a stable release becomes Latest on its own. beep boop
1 parent 513c2fc commit 7dc04a1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,10 @@ jobs:
3232
- uses: actions/attest@508db95dd578ae2727ebd6217d5ba78e4fbda05d # v4.2.1
3333
with:
3434
subject-checksums: ./dist/checksums.txt
35+
36+
# During public beta the newest beta is what people
37+
# should land on, so clear it.
38+
- if: contains(github.ref_name, '-beta')
39+
run: gh release edit "$GITHUB_REF_NAME" --prerelease=false --latest
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)