Uh oh!
There was an error while loading. Please reload this page.
Align release and publish automation - #7
Conversation
Separate publishing from release PR creation and make version syncing portable across environments. Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Pull request overview
Aligns the repository’s release/publish automation by splitting “create release PR” from “tag + publish”, tightening CI triggering behavior, and replacing the bash-based version sync step with a Node script.
Changes:
- Update CI to run on
mainand (for PRs) run tests only for changed codemod packages. - Split release automation into separate
Release(release PR creation) andPublish(tagging + publishing) workflows. - Replace the bash codemod.yaml version sync script with a Node implementation and introduce
.nvmrcfor Node version pinning.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/sync-codemod-yaml-versions.mjs | New Node script to sync codemod.yaml versions from each codemod’s package.json. |
| scripts/sync-codemod-versions.sh | Removed prior bash/sed-based YAML version sync implementation. |
| package.json | Switch version-packages to use the new Node sync script. |
| .nvmrc | Pins Node version for workflows/tools that use node-version-file. |
| .github/workflows/release.yml | Now only creates the release PR (publishing removed). |
| .github/workflows/publish.yml | New workflow to tag released versions and publish affected codemods. |
| .github/workflows/ci.yml | Restrict CI to main and add “test only changed codemods” logic for PRs. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Keep Node configuration consistent, avoid platform-specific filesystem commands, and allow independent publishes to finish. Co-authored-by: Cursor <cursoragent@cursor.com>
Uh oh!
There was an error while loading. Please reload this page.
Summary
Test plan
pnpm run cisync-codemod-yaml-versions.mjswithout metadata churntag-and-publish.mjswithDRY_RUN=1Made with Cursor