Skip to content

feat: auto-merge release-please PRs and auto-publish to npm - #50

Merged
terry90918 merged 1 commit into
mainfrom
develop
Jul 11, 2026
Merged

feat: auto-merge release-please PRs and auto-publish to npm#50
terry90918 merged 1 commit into
mainfrom
develop

Conversation

@terry90918

Copy link
Copy Markdown
Collaborator

Summary

  • The release chain (merge feature PR → merge release-please PR → `npm publish`) had two manual steps that were routinely forgotten.
  • `main` now requires the `Lint, Format, Tests` check to pass before merge (added branch protection — no review requirement, admin override still allowed).
  • `release.yml` requests GitHub auto-merge on the release-please PR right after it's opened/updated.
  • Once that PR merges, the same workflow's `publish` job runs `npm publish --access public` (gated on release-please's `release_created` output), using a new `NPM_TOKEN` repo secret.
  • Updated `CLAUDE.md`'s Publishing section to describe the new automated flow.

Effect

Going forward, merging a fix/feat PR into `main` is the only manual step — release-please, the release PR merge, and npm publish all happen automatically.

Test plan

  • Verified `main` branch protection: required status check = `Lint, Format, Tests`, no PR review requirement, admin override enabled
  • Verified `NPM_TOKEN` secret exists on the repo
  • First real release-please PR after this merges will be the live end-to-end test of auto-merge + auto-publish

Two manual steps in the release chain were routinely forgotten:
merging the release-please PR after it opened, and running
`npm publish` after that merge. Both are now automated:

- main now requires the "Lint, Format, Tests" check to pass before
  merge (branch protection), so auto-merge can't land broken releases
- release.yml requests GitHub auto-merge on the release PR right
  after release-please opens/updates it
- once merged, the same workflow's publish job runs
  `npm publish --access public` using the NPM_TOKEN repo secret,
  gated on release-please's `release_created` output

No developer action needed beyond merging a fix/feat PR into main.
Copilot AI review requested due to automatic review settings July 11, 2026 04:53
@terry90918 terry90918 added the enhancement New feature or request label Jul 11, 2026
@terry90918 terry90918 self-assigned this Jul 11, 2026
@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 1 minute

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 35eb9e52-59f9-4f46-a936-7059c765a973

📥 Commits

Reviewing files that changed from the base of the PR and between ed84b1f and ea32d60.

📒 Files selected for processing (2)
  • .github/workflows/release.yml
  • CLAUDE.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch develop

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

Copilot AI 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.

Pull request overview

Automates the release pipeline for @jurislm/coolify-mcp by requesting GitHub auto-merge for Release Please PRs and publishing to npm from CI, and documents the updated publishing flow.

Changes:

  • Update release.yml to (1) enable auto-merge on the Release Please PR and (2) run npm publish --access public when a release is created.
  • Update CLAUDE.md to describe the new fully automated release flow and required repo secret.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
CLAUDE.md Documents the new automated “release PR auto-merge + npm publish” flow.
.github/workflows/release.yml Requests auto-merge on the release PR and conditionally publishes to npm on release creation.

Comment on lines +40 to +43
publish:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
runs-on: ubuntu-latest
Comment on lines +37 to +38
pr_number=$(jq -r '.number' <<< "$RELEASE_PR_JSON")
gh pr merge "$pr_number" --auto --merge --repo "$REPO"
@terry90918
terry90918 merged commit 262a5eb into main Jul 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants