diff --git a/.github/workflows/nx.yml b/.github/workflows/nx.yml index 8afa8c14b353..05641df64c5a 100644 --- a/.github/workflows/nx.yml +++ b/.github/workflows/nx.yml @@ -84,7 +84,7 @@ jobs: }); - uses: actions/setup-node@v4 with: - node-version: 22 + node-version-file: '.nvmrc' cache: 'yarn' - run: yarn install --immutable - uses: nrwl/nx-set-shas@v4 diff --git a/.nvmrc b/.nvmrc index ddeb00c1678b..cde04c9af5a2 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1,2 +1,2 @@ -22.22.1 +22.22.3 diff --git a/AGENTS.md b/AGENTS.md index c805a77786ba..e9066b8bb45c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -9,7 +9,7 @@ This file is the canonical instruction source for coding agents. Files like `CLA Storybook is a large TypeScript monorepo. The git root is the repo root, the main code lives in `code/`, and build tooling lives in `scripts/`. The default branch is `next`. - **Base branch**: `next` (all PRs should target `next`, not `main`) -- **Node.js**: `22.22.1` (see `.nvmrc`) — supports `.ts` natively via type stripping (no loader needed) +- **Node.js**: `22.12+` (see `.nvmrc`) — supports `.ts` natively via type stripping (no loader needed) - **Package Manager**: Yarn Berry - **Task orchestration**: NX plus the custom `yarn task` runner - **CI environment**: Linux and Windows diff --git a/code/lib/cli-storybook/src/sandbox-templates.ts b/code/lib/cli-storybook/src/sandbox-templates.ts index dcd313b0db00..79fde0601dcc 100644 --- a/code/lib/cli-storybook/src/sandbox-templates.ts +++ b/code/lib/cli-storybook/src/sandbox-templates.ts @@ -98,7 +98,7 @@ export type Template = { }; /** Additional CI steps in case this template has special needs during CI. */ extraCiSteps?: { - // Some sandboxes (e.g. Angular) rely on Node 22.22.1 as minimum supported version and threfore it needs enforcing, even if the CI image comes with a different node version. + // Some sandboxes (e.g. Angular) rely on Node 22.22.3 as minimum supported version and threfore it needs enforcing, even if the CI image comes with a different node version. ensureMinNodeVersion?: boolean; }; /** Additional options to pass to the initiate command when initializing Storybook. */ diff --git a/scripts/ci/sandboxes.ts b/scripts/ci/sandboxes.ts index 4300d6b2807b..fe17059bf8f9 100644 --- a/scripts/ci/sandboxes.ts +++ b/scripts/ci/sandboxes.ts @@ -24,8 +24,8 @@ function getSandboxSetupSteps(template: string) { extraSteps.push({ 'node/install': { 'install-yarn': true, - // Currently using Node 22.22.1 as minimum supported version for Angular sandboxes - 'node-version': '22.22.1', + // Currently using Node 22.22.3 as minimum supported version for Angular sandboxes + 'node-version': '22.22.3', }, }); }