Skip to content

Align release and publish automation - #7

Merged
alexbit-codemod merged 2 commits into
mainfrom
chore/align-release-automation
Aug 10, 2026
Merged

Align release and publish automation#7
alexbit-codemod merged 2 commits into
mainfrom
chore/align-release-automation

Conversation

@alexbit-codemod

Copy link
Copy Markdown
Contributor

Summary

  • run CI on main and test only affected codemods in pull requests
  • separate release PR creation from codemod tagging and publishing
  • replace the platform-specific YAML version sync script with a Node implementation

Test plan

  • pnpm run ci
  • exercise sync-codemod-yaml-versions.mjs without metadata churn
  • run tag-and-publish.mjs with DRY_RUN=1
  • run syntax, lint, and diff checks

Made with Cursor

Separate publishing from release PR creation and make version syncing portable across environments.
Co-authored-by: Cursor <cursoragent@cursor.com>

CopilotAI 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

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 main and (for PRs) run tests only for changed codemod packages.
  • Split release automation into separate Release (release PR creation) and Publish (tagging + publishing) workflows.
  • Replace the bash codemod.yaml version sync script with a Node implementation and introduce .nvmrc for 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
FileDescription
scripts/sync-codemod-yaml-versions.mjsNew Node script to sync codemod.yaml versions from each codemod’s package.json.
scripts/sync-codemod-versions.shRemoved prior bash/sed-based YAML version sync implementation.
package.jsonSwitch version-packages to use the new Node sync script.
.nvmrcPins Node version for workflows/tools that use node-version-file.
.github/workflows/release.ymlNow only creates the release PR (publishing removed).
.github/workflows/publish.ymlNew workflow to tag released versions and publish affected codemods.
.github/workflows/ci.ymlRestrict 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.

Comment thread.github/workflows/ci.yml
Comment threadscripts/sync-codemod-yaml-versions.mjs Outdated
Comment thread.github/workflows/ci.yml Outdated
Comment thread.github/workflows/publish.yml
Keep Node configuration consistent, avoid platform-specific filesystem commands, and allow independent publishes to finish.
Co-authored-by: Cursor <cursoragent@cursor.com>
@alexbit-codemod
alexbit-codemod merged commit 6923baf into mainAug 10, 2026
1 check passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@alexbit-codemod