feat: auto-merge release-please PRs and auto-publish to npm - #50
Conversation
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.
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 1 minute Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
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.ymlto (1) enable auto-merge on the Release Please PR and (2) runnpm publish --access publicwhen a release is created. - Update
CLAUDE.mdto 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. |
| publish: | ||
| needs: release-please | ||
| if: ${{ needs.release-please.outputs.release_created }} | ||
| runs-on: ubuntu-latest |
| pr_number=$(jq -r '.number' <<< "$RELEASE_PR_JSON") | ||
| gh pr merge "$pr_number" --auto --merge --repo "$REPO" |
Summary
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