Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
required: false
type: boolean
default: true
dist-tag:
description: 'npm dist tag to publish to'
required: false
type: string
default: 'latest'

permissions: {}

Expand Down Expand Up @@ -48,5 +53,8 @@ jobs:
if [ "${{ inputs.github-release }}" = "true" ]; then
ARGS="$ARGS --github-release"
fi
if [ -n "${{ inputs.dist-tag }}" ]; then
ARGS="$ARGS --tag ${{ inputs.dist-tag }}"
fi

pnpm code-infra publish $ARGS
2 changes: 0 additions & 2 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"allowJs": true,
"isolatedModules": true,
"moduleResolution": "bundler",
/* files are emitted by babel */
"baseUrl": "../",
"noEmit": true,
"noUnusedLocals": true,
"resolveJsonModule": true,
Expand Down
18 changes: 10 additions & 8 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ The following steps must be proposed as a pull request.
1. Go to the [publish action](https://github.com/mui/material-ui/actions/workflows/publish.yml).
2. Choose "Run workflow" dropdown

> **Branch:** master
> **Commit SHA to release from:** the commit that contains the merged release on master. This commit is linked to the GitHub release.
> **Run in dry-run mode:** Used for debugging.
> **Create GitHub release:** Keep selected if you want a GitHub release to be automatically created from the changelog.
> - **Branch:** master
> - **Commit SHA to release from:** the commit that contains the merged release on master. This commit is linked to the GitHub release.
> - **Run in dry-run mode:** Used for debugging.
> - **Create GitHub release:** Keep selected if you want a GitHub release to be automatically created from the changelog.
> - **npm dist tag to publish to** Use to publish legacy or canary versions.

3. Click "Run workflow"
4. Refresh the page to see the newly created workflow, and click it.
Expand Down Expand Up @@ -89,10 +90,11 @@ Checkout the latest minor release tag and create a branch "release/PATCH_VERSION
1. Go to the [publish action](https://github.com/mui/material-ui/actions/workflows/publish.yml).
2. Choose "Run workflow" dropdown

> **Branch:** master
> **Commit SHA to release from:** the commit that contains the merged release on master. This commit is linked to the GitHub release.
> **Run in dry-run mode:** Used for debugging.
> **Create GitHub release:** Keep selected if you want a GitHub release to be automatically created from the changelog.
> - **Branch:** master
> - **Commit SHA to release from:** the commit that contains the merged release on master. This commit is linked to the GitHub release.
> - **Run in dry-run mode:** Used for debugging.
> - **Create GitHub release:** Keep selected if you want a GitHub release to be automatically created from the changelog.
> - **npm dist tag to publish to** Use to publish legacy or canary versions.

3. Click "Run workflow"
4. Refresh the page to see the newly created workflow, and click it.
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"allowSyntheticDefaultImports": true,
"noErrorTruncation": false,
"allowJs": true,
"baseUrl": ".",
"paths": {
"@mui/material": ["./packages/mui-material/src"],
"@mui/material/package.json": ["./packages/mui-material/package.json"],
Expand Down
Loading