ci: format lerna config after publishing#2382
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a formatting step to the v5 beta publish workflow to ensure that files modified during version bumping (e.g., lerna.json, package.json files, and auto-generated version.ts files) pass lint checks before they are committed. The root yarn lint:write script runs eslint . --fix && prettier --loglevel warn --write --ignore-unknown ., which aligns with how lint:write is already used in the PR check workflow (on-pull-request.yml) to format generated files before a git diff check.
Changes:
- Adds a new "Format Version Changes" step between "Inject Versions" and "Commit Version Changes" in the v5 beta publish workflow, running
yarn lint:writeto auto-format any files modified by the preceding version-bump and inject-version steps.
florrdv
approved these changes
Mar 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
yarn test)sitefolder, and guidelines for updating/adding docs can be found in the contribution guide)feat!: breaking change)yarn lint:check) and fix any issues? (yarn lint:write)PR-Codex overview
This PR updates the
.github/workflows/publish-v5-beta.ymlfile to improve the linting process for version changes before committing them, ensuring that committed files adhere to lint checks.Detailed summary
Format Version Changesthat runsyarn lint:writeif the inputpublishis true.Commit Version Changesstep's name, but kept its conditional check forpublish.