-
Notifications
You must be signed in to change notification settings - Fork 7
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: semantic release update deps #24
Conversation
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.
Awesome! I saw a few things which needs to be fixed but this looks really good! 🙇♂️
packages/d2-app/src/commands/scripts/support/semantic-release-update-deps.js
Outdated
Show resolved
Hide resolved
@varl thanks for the review, nice catches! Fixed them now. |
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.
This looks great! Well done. 👍
🎉 This PR is included in version 0.13.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
So... I may have gone a little overboard but I think this gets us all the way there.
This looks through glob patterns in the
workspaces
property of the rootpackage.json
. It then loops through all the package.jsons it can find and updates local dependencies (other packages found in the workspace) tonextRelease.version
(using a^
range). It also updates theversion
property in each package.json, including the root.Right now this will try to publish the root package as well, which should fail because it's private. We might want to filter out private repos before trying to publish them (or at least omit the root one in this specific case).= doneAlso - I don't think we're actually updating the
yarn.lock
files anywhere, but this should find and push them all in thegit
stage if they've changedNow time for 🛌