Skip to content
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

lerna v5 #1415

Merged
merged 3 commits into from
Dec 22, 2022
Merged

lerna v5 #1415

merged 3 commits into from
Dec 22, 2022

Conversation

SMotaal
Copy link
Contributor

@SMotaal SMotaal commented Dec 21, 2022

This PR relates to #1060.

It follows the steps taken in Agoric/agoric-sdk#5927 except it bumps lerna to 5.6.2 instead of 5.1.8.

Tasks

Notes

@turadg
Copy link
Member

turadg commented Dec 21, 2022

This is my first PR on this project and I am not familiar with the codebase nor the conventions, input and direction is greatly appreciated.

Changes look fine. The conventions are mostly around source code, of which there is none in this PR.

The most important thing is that it works, so the test plan should be thorough. This includes at least the test plan in Agoric/agoric-sdk#5927 . It should also test publishing, which I think you can do with a dry run locally (it will generate Git tags which must not be pushed to endojs repo, but you don't have to worry about that because you're working from a fork)

@SMotaal
Copy link
Contributor Author

SMotaal commented Dec 21, 2022

@turadg I'm not sure I understand what I need to do next on my end.


I am seeing 2 workflows awaiting approval before they can run.

Q: Does it make sense to approve them now so we can get some more insights?


The most important thing is that it works, so the test plan should be thorough. This includes at least the test plan in Agoric/agoric-sdk#5927.

  • yarn works
  • yarn build works
  • yarn test works

    apart from the one I mentioned in the description which is not related to the PR.

  • yarn lerna exec npm pkg get name |grep ": " | wc -l works

    31 packages

Q: Can you clarify please if I am missing what you specifically had in mind re Agoric/agoric-sdk#5927?


It should also test publishing, which I think you can do with a dry run locally (it will generate Git tags which must not be pushed to endojs repo, but you don't have to worry about that because you're working from a fork)

Q: Can you please point me to an issue or reference as a template for me to follow?

@turadg
Copy link
Member

turadg commented Dec 21, 2022

Q: Does it make sense to approve them now so we can get some more insights?

Yes, I hadn't seen that button. Clicked.

The most important thing is that it works, so the test plan should be thorough. This includes at least the test plan in Agoric/agoric-sdk#5927.

  • yarn works
  • yarn build works
  • yarn test works

    apart from the one I mentioned in the description which is not related to the PR.

  • yarn lerna exec npm pkg get name |grep ": " | wc -l works

    31 packages

Q: Can you clarify please if I am missing what you specifically had in mind re Agoric/agoric-sdk#5927?

Nothing missing; that's the test plan I pointed to as "at least". Glad to see it's working.

It should also test publishing, which I think you can do with a dry run locally (it will generate Git tags which must not be pushed to endojs repo, but you don't have to worry about that because you're working from a fork)

  • Here I am pausing as I am not sure how far along endjs/endo is publishing wise.
    Not sure what you're asking but Endo is publishing to NPM regularly. See https://www.npmjs.com/org/endo .

Q: Can you please point me to an issue or reference as a template for me to follow?

It's the standard Lerna workflow. #1340 is an example of a version bump to release.

@SMotaal

This comment was marked as outdated.

@kriskowal
Copy link
Member

This looks good to me. Please promote from draft to ready-for-review and either @turadg or I will review and merge. I’ll keep an eye on whether Lerna keeps doing the right thing when I cut releases again, which will be soon.

@SMotaal
Copy link
Contributor Author

SMotaal commented Dec 22, 2022

I’ll keep an eye on whether Lerna keeps doing the right thing when I cut releases again, which will be soon.

@kriskowal Updated description to reflect this… Promoting 🎉

@SMotaal SMotaal marked this pull request as ready for review December 22, 2022 10:23
Copy link
Member

@turadg turadg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I recall something about useNx defaulting to true now, but that's not until Lerna 6.

My only outstanding concern is that it work with the publish flow, but since @kriskowal has agreed to handle that I think this is good to land.

Thanks for the contribution @SMotaal !

@turadg turadg merged commit 7c191f8 into endojs:master Dec 22, 2022
@SMotaal SMotaal deleted the smotaal/lerna-v5 branch December 22, 2022 20:24
@SMotaal SMotaal mentioned this pull request Dec 25, 2022
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.

None yet

3 participants