diff --git a/.github/workflows/cross-language-integration.yml b/.github/workflows/cross-language-integration.yml index 9ba2a2d7b..78ef75d43 100644 --- a/.github/workflows/cross-language-integration.yml +++ b/.github/workflows/cross-language-integration.yml @@ -16,6 +16,8 @@ jobs: - name: Use Node.js uses: actions/setup-node@v6 + with: + node-version: '24' - name: Setup Go uses: actions/setup-go@v5 diff --git a/.github/workflows/validation.yaml b/.github/workflows/validation.yaml index 7bb00098e..acd54618c 100644 --- a/.github/workflows/validation.yaml +++ b/.github/workflows/validation.yaml @@ -15,13 +15,16 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] + node-version: ['22', '24'] steps: - name: Checkout code uses: actions/checkout@v6 - - name: Use Node.js + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v6 + with: + node-version: ${{ matrix.node-version }} - name: Setup Python uses: actions/setup-python@v5 diff --git a/README.md b/README.md index 414eed3f5..7298d50ae 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,8 @@ web runtimes. ## 🚀 Installation -> **Prerequisite:** ADK for TypeScript requires a current Node.js LTS release. +> **Prerequisite:** ADK for TypeScript requires Node.js 22.13.0 or newer. CI +> runs against the supported LTS lines, currently Node 22 and Node 24. ```bash npm install @google/adk diff --git a/package.json b/package.json index 36cc0d747..1747a469b 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,9 @@ "dev", "integrations" ], + "engines": { + "node": ">=22.13.0" + }, "devDependencies": { "@eslint/js": "^9.37.0", "@google/genai": "^2.9.0",