Skip to content

ci: add v2 prerelease notes and tags - #71

Merged
mynameistito merged 1 commit into
opencode-v2from
ci/v2-next-release-notes
Aug 22, 2026
Merged

ci: add v2 prerelease notes and tags#71
mynameistito merged 1 commit into
opencode-v2from
ci/v2-next-release-notes

Conversation

@mynameistito

@mynameistito mynameistito commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add idempotent v2 prerelease staging behavior.
  • Extract 2.0.0-next.N notes from CHANGELOG.md, matching stable releases.
  • Create a GitHub prerelease tagged v2.0.0-next.N against the exact opencode-v2 commit.
  • Support backfilling the GitHub release when the npm version is already published.

This does not move the latest dist-tag.


Summary by cubic

Adds idempotent v2 prerelease staging on npm and creates matching GitHub prereleases for 2.0.0-next.N with notes from CHANGELOG.md. Previously CI only tried to publish a preview; now it stages or skips if already published and creates a GitHub prerelease, without moving the latest dist-tag.

  • Replaces the publish step with an idempotent “Stage v2 preview” that uses npm view and tolerates “already staged/published” errors; keeps the next dist-tag.
  • Extracts release notes from the ## <version> section of CHANGELOG.md; falls back to a generic message if missing.
  • Creates a GitHub prerelease v<version> targeting the exact opencode-v2 commit only when it does not already exist; safe to rerun and to backfill after an npm publish.
  • Sets PACKAGE_NAME to oc-usage-limits-plugin.

Written for commit 5b6721e. Summary will update on new commits.

Review in cubic

@changeset-bot

changeset-bot Bot commented Aug 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5b6721e

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

@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 4f3e7127-c15b-4d45-8117-2dc91e2e0117

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mynameistito
mynameistito merged commit ebafa0c into opencode-v2 Aug 22, 2026
12 checks passed
@mynameistito
mynameistito deleted the ci/v2-next-release-notes branch August 22, 2026 06:14
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.

1 participant