cicd: add override for changeset version command#2000
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a new Changes
Sequence Diagram(s)sequenceDiagram
participant GH as "GitHub Actions"
participant CS as "changesets/action"
participant PN as "pnpm scripts"
participant GEN as "OpenAPI generator"
GH->>CS: trigger release workflow
CS->>PN: run `pnpm changeset:version`
PN->>CS: run `changeset version`
PN->>GEN: run `pnpm generate:openapi`
GEN-->>PN: OpenAPI artifacts
CS-->>GH: commit/versioned changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Greptile SummaryThis PR fixes a CI failure where the Confidence Score: 5/5Safe to merge — minimal two-line change in a CI workflow and one new npm script, with a clear, verifiable fix for the reported CI failure. No P0 or P1 findings. The changesets/action No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant GH as GitHub Push (main)
participant CsAction as changesets/action
participant Script as pnpm changeset:version
participant CS as changeset version
participant OA as pnpm generate:openapi
participant ReleasePR as "Release New Version" PR
GH->>CsAction: trigger (push to main)
CsAction->>Script: run version override
Script->>CS: changeset version (bump package.json versions)
CS-->>Script: versions bumped
Script->>OA: pnpm generate:openapi
OA-->>Script: ensapi-openapi.json regenerated with new versions
Script-->>CsAction: version step complete
CsAction->>ReleasePR: commit bumped versions + updated spec
Note over ReleasePR: OpenAPI Spec Sync Check passes on merge
Reviews (2): Last reviewed commit: "fix PR comments" | Re-trigger Greptile |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@package.json`:
- Around line 15-16: The changeset:next npm script runs "changeset version
--snapshot next" but doesn't regenerate the OpenAPI spec, leaving
ensapi-openapi.json with an outdated packageJson.version; update the
"changeset:next" script to mirror "changeset:version" by appending the OpenAPI
generation step so it runs "changeset version --snapshot next && pnpm -F
`@docs/ensnode` generate:openapi" (i.e., ensure the changeset:next script triggers
pnpm generate:openapi after the version bump).
🪄 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: ASSERTIVE
Plan: Pro
Run ID: 4cab62da-5afd-4bfe-8f94-4fd3c1c52fda
📒 Files selected for processing (2)
.github/workflows/release.ymlpackage.json
tk-o
left a comment
There was a problem hiding this comment.
Nice use of changesets/action 🚀 Left minor comment, otherwise, LGTM!
Summary
changesets/actionin.github/workflows/release.ymlto useversion: pnpm changeset:version.Why
OpenAPI Spec Sync Checkfails after merging “Release New Version” becauseensapi-openapi.jsonwas not regenerated after package version bumps.Testing
Pre-Review Checklist (Blocking)