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
chore(v2): prepare v2.0.0.alpha-68 release #3779
Conversation
Deploy preview for docusaurus-2 ready! Built with commit d2fd143 |
Size Change: +1.49 kB (0%) Total Size: 153 kB
ℹ️ View Unchanged
|
|
||
**TLDR**: you need to mark them as public, publish, and mark them back as private | ||
|
||
v1 packages have been marked as `private: true` on purpose. This is because lerna will publish ALL (v1+v2) packages with the lerna-publish command. Unfortunately it seems therre is no way to tell it to ignore v1 packages while publishing v2. During a long time, we published all these packages using the @next dist tag: `yarn lerna publish 2.0.0-alpha.41 --dist-tag next --exact` But it cause problems because v2 packages will then all need @next during npm/yarn installs, confusing some users (https://github.com/facebook/docusaurus/issues/3755) We made the v1 packages private so that lerna publish won't publish them, so that we can publish v2 packages under latest dist tag, without creating v1 upgrades that people will be notified abut. |
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.
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.
thanks.
Actually I think it's a mistale, and it's one single badly named tag 😓
I'm actually removing all the next tags so that the @Docusaurus packages are all on latest
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.
To keep a reference somewhere, I removed the v2 tags with the following command:
yarn lerna exec --no-private 'yarn tag remove $LERNA_PACKAGE_NAME next,latest'
yarn lerna exec --no-private 'yarn tag remove $LERNA_PACKAGE_NAME next'
The --no-private
ensure that v1 packages are not untagged (because they are now private)
Motivation
Release v2.0.0.alpha-68
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Preview
Note: alpha67 was a failed release (#3778)