diff --git a/.circleci/config.yml b/.circleci/config.yml index 84d6803ce..31560a89e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,7 +9,7 @@ parameters: default-job: &default-job working_directory: /tmp/mui docker: - - image: cimg/node:24.3 + - image: cimg/node:22.18 environment: DANGER_DISABLE_TRANSPILATION: 'true' diff --git a/.github/workflows/ci-base.yml b/.github/workflows/ci-base.yml index b153ded32..e165423f8 100644 --- a/.github/workflows/ci-base.yml +++ b/.github/workflows/ci-base.yml @@ -3,10 +3,12 @@ name: PR Releases on: workflow_call: inputs: + # For backwards compatibility node-version: description: 'Node.js version to use' - required: true + required: false type: string + default: '' use-compact-url: description: 'Use compact URLs for pkg.pr.new' required: false @@ -33,10 +35,16 @@ jobs: fetch-depth: 0 - name: Set up pnpm uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - - name: Use Node.js ${{ inputs.node-version }} + - name: Use specific Node.js version uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + if: ${{ inputs.node-version != '' }} with: node-version: ${{ inputs.node-version }} + - name: Use Node.js version from repo + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + if: ${{ inputs.node-version == '' }} + with: + node-version-file: 'package.json' # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies cache: 'pnpm' - run: pnpm install diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79e263687..bb44729b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,5 +13,3 @@ jobs: continuous-releases: name: CI Releases uses: ./.github/workflows/ci-base.yml - with: - node-version: 22 diff --git a/apps/code-infra-dashboard/netlify.toml b/apps/code-infra-dashboard/netlify.toml index f1be9fb82..30ade211f 100644 --- a/apps/code-infra-dashboard/netlify.toml +++ b/apps/code-infra-dashboard/netlify.toml @@ -13,7 +13,7 @@ targetPort = 3000 [build.environment] - NODE_VERSION = "20" + NODE_VERSION = "22.18" [functions] directory = "functions" diff --git a/package.json b/package.json index de3ccc9d7..e2d8210e7 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,6 @@ "packageManager": "pnpm@10.15.0", "engines": { "pnpm": "10.15.0", - "node": ">=18.0.0" + "node": ">=22.18" } } diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index a24296216..d7baa4c3b 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -7,3 +7,4 @@ overrides: # and to eslint for another instance, causing a conflict. # This should not be an issue for end users, but it is a problem for the monorepo. '@types/eslint': 'npm:eslint@^9.29.0' +engineStrict: true diff --git a/update-netlify-ignore.mjs b/update-netlify-ignore.mjs index 8f2f9fd45..42b107e60 100755 --- a/update-netlify-ignore.mjs +++ b/update-netlify-ignore.mjs @@ -9,7 +9,7 @@ const packageName = process.argv[2]; if (!packageName) { console.error( - 'Error: Package name is required. Usage: node update-netlify-ignore.js ', + 'Error: Package name is required. Usage: node update-netlify-ignore.mjs ', ); process.exit(1); }