You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,8 @@ The following steps must be proposed as a pull request to `release/<PATCH_VERSIO
98
98
99
99
#### Release
100
100
101
+
From Github UI:
102
+
101
103
1. Go to the [publish action](https://github.com/mui/material-ui/actions/workflows/publish.yml).
102
104
2. Choose "Run workflow" dropdown
103
105
@@ -111,6 +113,20 @@ The following steps must be proposed as a pull request to `release/<PATCH_VERSIO
111
113
4. Refresh the page to see the newly created workflow, and click it.
112
114
5. The next screen shows "@username requested your review to deploy to npm-publish", click "Review deployments" and authorize your workflow run. **Never approve workflow runs you didn't initiaite.**
113
115
116
+
From terminal:
117
+
118
+
1. Run `pnpm release:publish`. You may be asked to authenticate with Github when running the command for the first time or after a very long time.
119
+
2. It'll automatically fetch the latest merged release PR and ask for confirmation before publishing.
120
+
3. If you already know the sha of the commit, you can directly do `pnpm release:publish --sha your-sha`.
121
+
4. Other flags for the command:
122
+
123
+
> -**--dry-run** Used for debugging.
124
+
> -**--github-release** Pass if you want a GitHub release to be automatically created from the changelog.
125
+
> -**--dist-tag** Use to publish legacy or canary versions.
126
+
127
+
5. This command invokes the same Github action as above behind the scene. It'll log the url which can be opened to see the latest workflow run.
128
+
6. Open the latest workflow run and proceed with the approval.
129
+
114
130
#### Documentation
115
131
116
132
Run `git push -f material-ui-docs HEAD:latest` to deploy the documentation (it lives at https://material-ui.netlify.app/) with the latest changes.
0 commit comments