-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: migrated to changesets from lerna #4533
base: main
Are you sure you want to change the base?
Conversation
Branch preview |
Tachometer resultsCurrently, no packages are changed by this PR... |
Lighthouse scores
What is this?Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on Transfer Size
Request Count
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left one question here, @blunteshwar. An additional thought I had was if you need to account for the fixed version numbers that you publish at. Spectrum CSS doesn't use fixed versioning, so I didn't look into this, but you may need to!
Otherwise, the rest of the changes here look good. Are you going to be using the bot and the GitHub Action?
Yes, we are probably gonna use bot and the GitHub Action |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good!
@blunteshwar Once you resolve the changes requested by @castastrophe ,lets run a shallow release from this branch to make sure the build scripts are working with changesets! |
No I think that approach makes the most sense. |
Co-authored-by: [ Cassondra ] <[email protected]>
Co-authored-by: [ Cassondra ] <[email protected]>
…nents into feat/changesets
9703c43
to
0cab113
Compare
…nents into feat/changesets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! And once again, kudos for the level of detail you put into the PR description. I have a few suggestions and questions here and then I'm happy to re-review.
Description
This removes Lerna and replaces it with Changesets for handling package versioning and publishing (releases).
How and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
Validation steps
It's important to know that moving to Changesets shifts the onus of version determination toward a more intentional choice for contributors. Some could argue that the onus was already on the contributor as we used Conventional Commit messages to provide Lerna a way to infer the severity of a version increase. Now, instead of relying on Conventional Commit messages, the contributor will be asked to provide changesets as part of their PR process.
The workflow for this will look something like:
yarn changeset
and is asked in the CLI to choose which package(s) should be part of the changeset.major
,minor
, orpatch
. Hittingenter
in the CLI without making a choice will skip options withpatch
being the final option.changelog.md
for the respective package(s). We're also using the@changesets/changelog-github
package to provide additional GitHub-related context (pull request number + link, contributor information), and this info will show in thechangelog.md
for the package(s), as well.Alternatively, After committing all the changes, the contributor can also leverage changeset bot to add the chanesets.
This bot will comment on PRs saying that either a user might need to add a changeset(note that PRs changing things like documentation generally don't need a changeset)or say that the PR is good and already has a changeset.
For more details: https://github.com/changesets/bot
Motivation and context
How has this been tested?
Screenshots (if appropriate)
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.