Skip to content

[core] Update release docs and scripts #1245

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

Merged
merged 7 commits into from
Mar 7, 2025

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Dec 30, 2024

I tried to clean-up a bit the release steps.

@oliviertassinari oliviertassinari added core DO NOT USE. This label has been deprecated and replaced by `all components` and `internal`. performance labels Dec 30, 2024
@oliviertassinari oliviertassinari changed the title [core] Improve release [core] Remove tsconfig.json.tsbuildinfo from npm Dec 30, 2024

<!-- #default-branch-switch -->

```bash
git push -f upstream master:docs-v1
pnpm docs:deploy
Copy link
Member Author

Choose a reason for hiding this comment

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

Makes this resilient to docs versioning. We struggled a bit with this on X.

Copy link
Member

Choose a reason for hiding this comment

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

There's no need for the default-branch-switch comment anymore after this change

@mui-bot
Copy link

mui-bot commented Dec 30, 2024

Netlify deploy preview

https://deploy-preview-1245--base-ui.netlify.app/

Generated by 🚫 dangerJS against 17a5636

@@ -1,8 +1,11 @@
/* eslint-disable no-console */
import path from 'path';
import fse from 'fs-extra';
Copy link
Member Author

Choose a reason for hiding this comment

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

No reason to use fs-extra anymore, we should remove it from the codebase.

Comment on lines 66 to 75
"prebuild": "rimraf --glob build build-tests \"*.tsbuildinfo\"",
"build": "pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files && pnpm build:manifest",
"build:node": "node ../../scripts/build.mjs node",
"build:stable": "node ../../scripts/build.mjs stable",
"build:types": "tsx ../../scripts/buildTypes.mts --project tsconfig.build.json --copy build/cjs",
"build:copy-files": "node ../../scripts/copyFiles.mjs",
"build:types": "tsx ../../scripts/buildTypes.mjs --project tsconfig.build.json --copy build/cjs",
"build:manifest": "tsx ./scripts/createPackageManifest.mts",
"test:package": "publint ./build && attw --pack ./build",
"prebuild": "rimraf --glob build build-tests \"*.tsbuildinfo\"",
Copy link
Member Author

Choose a reason for hiding this comment

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

Logical order

"build:copy-files": "node ../../scripts/copyFiles.mjs",
"build:types": "tsx ../../scripts/buildTypes.mjs --project tsconfig.build.json --copy build/cjs",
Copy link
Member Author

@oliviertassinari oliviertassinari Dec 30, 2024

Choose a reason for hiding this comment

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

The file extension was wrong buildTypes.mjs -> buildTypes.mts. I'm amazed it still worked.

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Jan 2, 2025
@michaldudak
Copy link
Member

The tsbuildinfo was removed from the built package in #1152

@@ -31,6 +34,10 @@ async function addLicense(packageData) {
);
}

async function removeBuildArtefacts() {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
async function removeBuildArtefacts() {
async function removeBuildArtifacts() {

We tend to use American spelling throughout the codebase (https://grammarist.com/spelling/artefact-artifact/)

3. `pnpm release:publish` (release the versions on npm, you need your 2FA device)
4. `pnpm release:tag` (push the newly created tag)
> Tip: You can use `release:publish:dry-run` to test the release process without actually publishing the packages.
> Be sure install [verdaccio](https://verdaccio.org/) (local npm registry) before doing it.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
> Be sure install [verdaccio](https://verdaccio.org/) (local npm registry) before doing it.
> Make sure to have [verdaccio](https://verdaccio.org/) (local npm registry) installed before doing it.


<!-- #default-branch-switch -->

```bash
git push -f upstream master:docs-v1
pnpm docs:deploy
Copy link
Member

Choose a reason for hiding this comment

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

There's no need for the default-branch-switch comment anymore after this change

@@ -31,6 +34,10 @@ async function addLicense(packageData) {
);
}

async function removeBuildArtefacts() {
await $$`rimraf --glob ${buildPath}/*.tsbuildinfo`;
Copy link
Member

Choose a reason for hiding this comment

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

Why not use rimraf directly from the script?

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Mar 7, 2025
Copy link

netlify bot commented Mar 7, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit edcd6f9
🔍 Latest deploy log https://app.netlify.com/sites/base-ui/deploys/67cac54381752500084aea1e
😎 Deploy Preview https://deploy-preview-1245--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Mar 7, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit cc79cd7
🔍 Latest deploy log https://app.netlify.com/sites/base-ui/deploys/67cac59081752500084afa1e
😎 Deploy Preview https://deploy-preview-1245--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Mar 7, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 2ee355b
🔍 Latest deploy log https://app.netlify.com/sites/base-ui/deploys/67cac65ae4cd4d0008519ec3
😎 Deploy Preview https://deploy-preview-1245--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@michaldudak michaldudak changed the title [core] Remove tsconfig.json.tsbuildinfo from npm [core] Update release docs and scripts Mar 7, 2025
Copy link

netlify bot commented Mar 7, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit ff5dfdd
🔍 Latest deploy log https://app.netlify.com/sites/base-ui/deploys/67cac74d65391e00081d5a01
😎 Deploy Preview https://deploy-preview-1245--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@michaldudak
Copy link
Member

I implemented changes for comments and removed parts concerning tsbuildinfo as it was already done elsewhere.

@michaldudak michaldudak enabled auto-merge (squash) March 7, 2025 10:15
@michaldudak michaldudak merged commit d8c8771 into mui:master Mar 7, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core DO NOT USE. This label has been deprecated and replaced by `all components` and `internal`. performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants