Skip to content

[infra] Bump node.js version and make local usage strict #970

[infra] Bump node.js version and make local usage strict

[infra] Bump node.js version and make local usage strict #970

Workflow file for this run

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:
paths-ignore:
# should sync with ci-check.yml as a workaround to bypass github checks
- 'examples/**'
permissions: {}
jobs:
continuous-releases:
name: Continuous releases
uses: mui/mui-public/.github/workflows/ci-base.yml@master
# Tests dev-only scripts across all supported dev environments
test-dev:
# l10nbot does not affect dev scripts.
if: ${{ github.actor != 'l10nbot' }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- run: echo "${{ github.actor }}"
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
with:
# fetch all tags which are required for `pnpm release:changelog`
fetch-depth: 0
- name: Set up pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- name: Use Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22.18.0'
cache: 'pnpm' # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies
- run: pnpm install
- run: pnpm build:ci
env:
NODE_OPTIONS: --max_old_space_size=6144
- run: pnpm release:changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm validate-declarations
- name: pnpm release:tag
run: |
git remote -v
pnpm release:tag --dryRun