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

[docs] Update release instructions #36113

Merged
merged 2 commits into from
Feb 9, 2023

Conversation

mj12albert
Copy link
Member

@mj12albert mj12albert commented Feb 9, 2023

Proposing some updates to the instructions after doing this process for the first time ~

@mui-bot
Copy link

mui-bot commented Feb 9, 2023

Netlify deploy preview

No updates.

Bundle size report

No bundle size changes

Generated by 🚫 dangerJS against 4377ccc

@@ -29,17 +42,8 @@ The following steps must be proposed as a pull request.

### Documentation

Push the next branch on the release branch to deploy the documentation with the latest changes. It lives at https://material-ui.netlify.app/. Force push if necessary.
Copy link
Member Author

@mj12albert mj12albert Feb 9, 2023

Choose a reason for hiding this comment

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

If I understand this correctly, only yarn docs:deploy is needed to do this step.

The way that this was written originally made me think "Push the next branch..." and and yarn docs:deploy were two separate actions

@mj12albert mj12albert marked this pull request as ready for review February 9, 2023 06:15
@mj12albert mj12albert requested a review from a team February 9, 2023 06:15
@mj12albert mj12albert added the docs Improvements or additions to the documentation label Feb 9, 2023
Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

👍

@mj12albert mj12albert merged commit 1fbb751 into mui:master Feb 9, 2023
@mj12albert mj12albert deleted the docs/release-instructions branch February 9, 2023 07:10
### Prerequisites

1. You must be a member of the `@mui` org in npm to publish the release
1. Set up your npm authToken by logging into npm (`npm login`) . This will save a token to `~/.npmrc` as a line that looks
Copy link
Member

Choose a reason for hiding this comment

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

Could you update the numbering? It looks better when reading plain text (not rendered markdown). I wouldn't mind having correct indexes in other lists in this file as well.

Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

Nice cleanup

yarn docs:deploy
```
`yarn docs:deploy` to deploy the documentation (it lives at https://material-ui.netlify.app/) with the latest changes.
Force push if necessary.
Copy link
Member

Choose a reason for hiding this comment

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

We could almost add -f in

"deploy": "git push material-ui-docs master:latest",

So we never need to worry about this. It's totally normal to have to push force in the current workflow.

Suggested change
Force push if necessary.

Copy link
Member Author

Choose a reason for hiding this comment

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

I also wondered if this was more convenient – is it common to have to force push to get this part to work? 🧐 @mui/core

Copy link
Member

Choose a reason for hiding this comment

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

It depends on either website changes were cherry-picked to be deployed outside of the MUI Core docs release cycle. Maybe 5% of the time?

Copy link
Member

Choose a reason for hiding this comment

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

I didn't needed to force push for a long time, but having it by default would indeed improve the experience, especially for new joiners 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

I just had to force push to deploy!

Will open a new issue for further edit suggestions to this doc (e.g. combine some of the yarn steps with &&)

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, we had to cherry-pick to do a hot deploy to fix https://mui-org.slack.com/archives/C041SDSF32L/p1676634426113669.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants