-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Summary 💡
Hi! I've noticed you have a very well-defined release process with scripts to support this process for mui/material-ui. It looks to me like the scripts are currently run manually, and we could automate the script runs, that don't require human action, using GitHub workflows to release.
Add support in the different repositories:
- Material UI [code-infra] Publish from CI material-ui#46851
- MUI X [code-infra] Set up publishing from GitHub actions mui-x#19264
- Base UI [code-infra] Publish from CI base-ui#2607
- Joy UI
Restrict npm permissions
- Enable "Require two-factor authentication and disallow tokens" for all npm packages https://docs.npmjs.com/requiring-2fa-for-package-publishing-and-settings-modification

More context in https://github.com/orgs/community/discussions/172886
Examples 🌈
Examples of GitHub workflows releasing to npm:
https://github.com/reduxjs/react-redux/blob/4a7e129ee537d35c53da258ccf7924a0376391ee/.github/workflows/publish.yaml
https://github.com/SAP/ui5-webcomponents/blob/3b7c711875303be0bb995c80545a9786b2ec511c/.github/workflows/release-custom-tag.yaml
Motivation 🔦
Automating the release makes the process easier for you (fewer things to do each time!). It also improves the security of the release by using a "trusted builder". A "trusted builder" provides a higher level of confidence, for example, that your checking out the correct commit and that yarn
package was not compromised, over running in a local machine.
Additional context
If you are willing to automate your releasing script runs using GitHub workflows, I can support you by opening PRs!
I'm Gabriela and I work on behalf of Google and the OpenSSF suggesting supply-chain security changes :)