Skip to content

fix(ci): add prerelease versioning to release-please config#305

Merged
skevetter merged 2 commits into
mainfrom
43e3-ws-release-fix
May 17, 2026
Merged

fix(ci): add prerelease versioning to release-please config#305
skevetter merged 2 commits into
mainfrom
43e3-ws-release-fix

Conversation

@skevetter

@skevetter skevetter commented May 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add \"versioning\": \"prerelease\" to release-please-config.json — without this key, release-please uses default versioning and produces stable versions instead of RC versions despite \"prerelease\": true being set
  • Add published to release.yml trigger types ([prereleased, published]) so stable releases promoted from RC also trigger artifact builds

Summary by CodeRabbit

  • Chores
    • Updated release workflow to trigger on both pre-release and published events
    • Enhanced release configuration with prerelease versioning settings

Review Change Stack

…e release trigger

- Add "versioning": "prerelease" to release-please-config.json so release-please generates RC versions instead of stable versions
- Add "published" to release.yml trigger types so stable releases also build artifacts
@netlify

netlify Bot commented May 17, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 1703124
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a09c29cf58ac00008baf922

@coderabbitai

coderabbitai Bot commented May 17, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@skevetter has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 54 minutes and 27 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4ed30979-35cf-4411-9a61-db9b51aed940

📥 Commits

Reviewing files that changed from the base of the PR and between b550547 and 1703124.

📒 Files selected for processing (1)
  • .github/workflows/release.yml
📝 Walkthrough

Walkthrough

This PR updates release automation configuration to support prerelease versioning. The GitHub Actions workflow now triggers on both prereleased and published release events, and release-please is configured to use prerelease versioning strategy.

Changes

Prerelease support

Layer / File(s) Summary
Release workflow and versioning configuration
.github/workflows/release.yml, release-please-config.json
Workflow trigger extended to react to both prereleased and published events, and release-please versioning set to prerelease mode.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding prerelease versioning configuration to release-please-config.json, which aligns with the primary objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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 and usage tips.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/release.yml:
- Line 4: The workflow currently lists release event types as "types:
[prereleased, published]" causing duplicate runs; change the event trigger to
only "types: [published]" and then control job behavior by checking the
release's prerelease flag (use conditions like "if:
github.event.release.prerelease == true" or "== false") inside the affected
jobs; update the release trigger definition (the "types" key) and add
appropriate "if" conditions to jobs that must differ between prerelease and
stable flows so only one run fires and job logic branches on
github.event.release.prerelease.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bb921ef3-9e96-45e5-88a5-50fc2499530d

📥 Commits

Reviewing files that changed from the base of the PR and between 8062044 and b550547.

📒 Files selected for processing (2)
  • .github/workflows/release.yml
  • release-please-config.json

Comment thread .github/workflows/release.yml Outdated
on:
release:
types: [prereleased]
types: [prereleased, published]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

For GitHub Actions release` events, what action values are emitted for:

  1. publishing a prerelease,
  2. publishing a stable release from draft,
  3. promoting an existing prerelease to stable?
    Does types: [prereleased, published] risk duplicate workflow runs for prerelease publication, and is released required for prerelease->stable promotion?`

💡 Result:

For GitHub Actions release events, the action values emitted are as follows: 1) Publishing a prerelease: Emits prereleased if created directly as a prerelease, or published if published from a draft [1][2]. 2) Publishing a stable release from draft: Emits published [1][3]. 3) Promoting an existing prerelease to stable: Emits published when the release is edited and the "This is a pre-release" checkbox is unchecked [1]. Regarding your specific questions: - Does types: [prereleased, published] risk duplicate workflow runs for prerelease publication? Yes, it can. If a prerelease is published directly (not from a draft), it may trigger both prereleased and published depending on the specific GitHub API behavior and how the release is created [1][2]. GitHub documentation explicitly recommends subscribing only to published if you want a workflow to run for both stable and prereleases, as published triggers for both [1]. - Is released required for prerelease->stable promotion? No, released is not required. The published activity type is the standard trigger for when a release is made public, including when a prerelease is promoted to a stable release [1]. The released activity type is generally not used for these standard publication workflows [1]. In summary, to avoid duplicate runs and ensure consistent behavior, it is best practice to use types: [published] and handle the distinction between stable and prerelease versions within your workflow jobs using conditional logic, such as checking the github.event.release.prerelease boolean property [1][2].

Citations:


Use types: [published] and handle stable vs prerelease in the workflow.

The current types: [prereleased, published] can trigger duplicate runs when a prerelease is published directly. Simplify to types: [published] (which triggers for both stable and prerelease releases) and use if: github.event.release.prerelease == false (or == true) within jobs to distinguish behavior between stable and prerelease. The released action type is not needed for prerelease-to-stable promotions—published handles that case.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/release.yml at line 4, The workflow currently lists
release event types as "types: [prereleased, published]" causing duplicate runs;
change the event trigger to only "types: [published]" and then control job
behavior by checking the release's prerelease flag (use conditions like "if:
github.event.release.prerelease == true" or "== false") inside the affected
jobs; update the release trigger definition (the "types" key) and add
appropriate "if" conditions to jobs that must differ between prerelease and
stable flows so only one run fires and job logic branches on
github.event.release.prerelease.

CodeRabbit: prereleased+published can double-fire on direct prerelease publish.
published alone triggers for both stable and prerelease; the prerelease job
already gates on github.event.release.prerelease.
@skevetter
skevetter enabled auto-merge (squash) May 17, 2026 13:44
@skevetter
skevetter merged commit f65bb85 into main May 17, 2026
49 checks passed
@skevetter
skevetter deleted the 43e3-ws-release-fix branch May 17, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant