Skip to content

fix: regenerate the README inside the version-packages script - #185

Merged
schultzp2020 merged 2 commits into
mainfrom
fix/version-packages-readme
Nov 3, 2026
Merged

schultzp2020 merged 2 commits into
mainfrom
fix/version-packages-readme

Conversation

@schultzp2020

Copy link
Copy Markdown
Contributor

Summary

The Version Packages PR was missing its README update because the follow-up
"Sync README" step could never run.

-"version-packages": "changeset version && sync-codemod-versions"
+"version-packages": "changeset version && sync-codemod-versions && generate-readme-codemods"

The changesets action runs the version script in the job's working tree and
commits the resulting diff itself. The old post-action step then tried to
git checkout changeset-release/main against that dirty tree and aborted
("local changes would be overwritten"). Regenerating the README as the last
stage of version-packages puts it into the same version commit the action
pushes, so changeset consumption, version bumps, and the README land in one
commit. The broken checkout step is deleted.

Evidence

  • Before: Release run 41668061175 fails at "Sync README on Version Packages
    PR" with error: Your local changes to the following files would be overwritten by checkout.
    After: yarn version-packages verified end-to-end in a throwaway
    worktree (all 10 changesets consumed, 12 codemod.yaml versions synced,
    README regenerated, exit 0).

Merge Danger

Door: two-way (single revert).

Blast Radius: release pipeline only — no codemod or package changes.

The post-changesets checkout step failed because the changesets action
leaves the working tree dirty with the version bumps it commits itself;
checking out changeset-release/main then aborts. Running
generate-readme-codemods as the last stage of version-packages puts the
README into the same version commit the action pushes, which is also
where it belongs.
@schultzp2020
schultzp2020 merged commit cbddde4 into main Nov 3, 2026
2 checks passed
@schultzp2020
schultzp2020 deleted the fix/version-packages-readme branch November 3, 2026 17:04
Sign up for free to 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.

1 participant