[utils] Port x-internals store improvements #27384
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches-ignore: | |
| # Renovate branches are always Pull Requests. | |
| # We don't need to run CI twice (push+pull_request) | |
| - 'renovate/**' | |
| - 'dependabot/**' | |
| pull_request: | |
| permissions: {} | |
| jobs: | |
| # Builds and publishes pull request package previews. | |
| package-preview: | |
| name: Package Preview | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 | |
| - name: Use Node.js 22.x | |
| uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 | |
| with: | |
| node-version: '22.23.2' | |
| cache: 'pnpm' # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies | |
| - run: pnpm install | |
| - run: pnpm release:build | |
| - name: Publish packages | |
| uses: mui/mui-public/.github/actions/ci-publish@0534c1cc1a7f0f170d927199ec407192a656e81f # master | |
| with: | |
| pr-comment: true | |
| vale: | |
| name: Vale | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 | |
| - name: Use Node.js 22.x | |
| uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 | |
| with: | |
| node-version: '22.23.2' | |
| cache: 'pnpm' # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies | |
| - run: pnpm install | |
| - name: Extract Vale version | |
| id: vale-version | |
| run: | | |
| VERSION=$(node -p "(require('./package.json').config && require('./package.json').config.valeVersion) || ''") | |
| echo "vale_version=$VERSION" >> $GITHUB_OUTPUT | |
| - uses: vale-cli/vale-action@85f9f7f2c5f449ac0ae5b66662961bae3f77ca6a # v2.1.2 | |
| continue-on-error: true # GitHub Action flag needed until https://github.com/errata-ai/vale-action/issues/89 is fixed | |
| with: | |
| version: ${{ steps.vale-version.outputs.vale_version }} | |
| # Errors should be more visible | |
| fail_on_error: true | |
| # The other reports don't work, not really https://github.com/reviewdog/reviewdog#reporters | |
| reporter: github-pr-check | |
| # Required, set by GitHub actions automatically: | |
| # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret | |
| token: ${{secrets.GITHUB_TOKEN}} | |
| screen-reader-windows: | |
| name: Screen Reader (Windows / NVDA) | |
| runs-on: windows-2025 | |
| timeout-minutes: 15 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5 | |
| - name: Use Node.js 22.x | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: '22.23.2' | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - run: pnpm test:screen-reader | |
| # Mirrors the real publish workflow environment (`publish.yml`) so an env | |
| # mismatch — e.g. the Node version pinned by `publish-prepare` violating our | |
| # engineStrict `engines` range — is caught here instead of during publishing. | |
| publish-dry-run: | |
| name: Publish Dry Run | |
| if: ${{ github.repository_owner == 'mui' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 | |
| - name: Prepare for publishing | |
| uses: mui/mui-public/.github/actions/publish-prepare@0534c1cc1a7f0f170d927199ec407192a656e81f # master | |
| with: | |
| node-version: '22.23.2' | |
| - name: Dry run npm publishing | |
| env: | |
| IS_PUBLISH_TEST: 'true' | |
| run: pnpm code-infra publish --ci --dry-run |