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

chore(v2): prepare v2.0.0.alpha-68 release #3779

Merged
merged 6 commits into from Nov 18, 2020
Merged

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Nov 18, 2020

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)

@slorber slorber requested a review from lex111 as a code owner November 18, 2020 18:34
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Nov 18, 2020
@netlify
Copy link

netlify bot commented Nov 18, 2020

Deploy preview for docusaurus-2 ready!

Built with commit d2fd143

https://deploy-preview-3779--docusaurus-2.netlify.app

@github-actions
Copy link

github-actions bot commented Nov 18, 2020

Size Change: +1.49 kB (0%)

Total Size: 153 kB

Filename Size Change
website/build/main.********.js 109 kB +1.46 kB (1%)
ℹ️ View Unchanged
Filename Size Change
website/build/blog/2017/12/14/introducing-docusaurus/index.html 20.7 kB +9 B (0%)
website/build/docs/introduction/index.html 180 B 0 B
website/build/index.html 5.86 kB +13 B (0%)
website/build/styles.********.css 17.3 kB 0 B

compressed-size-action


**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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Great explanation 👍
Can we mark new versions with two tags, latest and next? It seems that they did it before.

image

Copy link
Collaborator Author

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

Copy link
Collaborator Author

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)

@slorber slorber merged commit d1e51f7 into master Nov 18, 2020
@slorber slorber deleted the slorber/2.0.0-alpha.68 branch August 17, 2021 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants