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
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,20 +96,18 @@ The following steps must be proposed as a pull request to `release/<PATCH_VERSIO
96
96
7. Merge PR into `release/<PATCH_VERSION>` once CI is green and it has been approved.
97
97
8. Open and merge a PR from `release/<PATCH_VERSION>` to master to correct the package versioning and update the changelog.
98
98
99
-
####Release
99
+
### Release the packages
100
100
101
-
1. Go to the [publish action](https://github.com/mui/material-ui/actions/workflows/publish.yml).
102
-
2. Choose "Run workflow" dropdown
101
+
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.
102
+
2. It'll automatically fetch the latest merged release PR and ask for confirmation before publishing.
103
+
3. If you already know the sha of the commit, you can pass it directly like `pnpm release:publish --sha <your-sha>`.
104
+
4. Other flags for the command:
103
105
104
-
> -**Branch:**`release/<PATCH_VERSION>`
105
-
> -**Commit SHA to release from:** the commit that contains the merged release on `release/<PATCH_VERSION>`. This commit is linked to the GitHub release.
106
-
> -**Run in dry-run mode:** Used for debugging.
107
-
> -**Create GitHub release:** Keep selected if you want a GitHub release to be automatically created from the changelog.
108
-
> -**npm dist tag to publish to** Use to publish legacy or canary versions.
106
+
> -**--dry-run** Used for debugging. Or directly run `pnpm release:publish:dry-run`.
107
+
> -**--dist-tag** Use to publish legacy or canary versions.
109
108
110
-
3. Click "Run workflow"
111
-
4. Refresh the page to see the newly created workflow, and click it.
112
-
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.**
109
+
5. This command invokes the [Publish](https://github.com/mui/base-ui/actions/workflows/publish.yml) GitHub action. It'll log the url which can be opened to see the latest workflow run.
110
+
6. 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.**
0 commit comments