Skip to content

fix(ci): keep v4 releases from latest - #487

Merged
stipsan merged 1 commit into
v4from
cursor/keep-v4-releases-from-latest-5a10
Aug 4, 2026
Merged

fix(ci): keep v4 releases from latest#487
stipsan merged 1 commit into
v4from
cursor/keep-v4-releases-from-latest-5a10

Conversation

@stipsan

@stipsan stipsan commented Aug 4, 2026

Copy link
Copy Markdown
Member

Prevent v4 GitHub releases from replacing the v5 release from current as the repository's latest release.

Because this repository delegates publishing to a reusable workflow, add a dependent v4-only job that checks out the published package version and marks its react-rx@<version> GitHub release with --latest=false. The job receives only the contents: write permission required to edit release metadata.

Validation

  • actionlint .github/workflows/release.yml
  • pnpm exec oxfmt --check .github/workflows/release.yml
  • Verified the workflow's version expression resolves to the existing react-rx@4.2.5 release tag
Open in Web Open in Cursor 

Co-authored-by: Cody Olsen <stipsan@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: df4873c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-rx Ready Ready Preview Aug 4, 2026 9:17am

Request Review

@stipsan
stipsan marked this pull request as ready for review August 4, 2026 12:55
@stipsan
stipsan merged commit 88a8a1a into v4 Aug 4, 2026
11 checks passed
@stipsan
stipsan deleted the cursor/keep-v4-releases-from-latest-5a10 branch August 4, 2026 12:55

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit df4873c. Configure here.

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: gh release edit "react-rx@$(node -p "require('./packages/react-rx/package.json').version")" --latest=false

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest badge not restored

Medium Severity

Demoting the v4 GitHub release with --latest=false does not put the v5 release from current back as latest. After changesets creates the v4 release as latest, this edit only clears that flag, so the repo can end up with no latest release instead of preserving the v5 one.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit df4873c. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants