Skip to content
This repository was archived by the owner on Aug 31, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/agent-server-sdk-main-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ jobs:
--output "$RUNNER_TEMP/sdk-main-openapi.json"
)

- name: Use Node.js 22.12
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 22.12
node-version-file: .nvmrc
cache: 'npm'

- name: Install client dependencies
Expand Down
24 changes: 10 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js 22.12
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 22.12
node-version-file: .nvmrc
cache: 'npm'

- name: Install dependencies
Expand All @@ -36,10 +36,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js 22.12
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 22.12
node-version-file: .nvmrc
cache: 'npm'

- name: Install dependencies
Expand All @@ -54,18 +54,14 @@ jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.12, 24.x]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
node-version-file: .nvmrc
cache: 'npm'

- name: Install dependencies
Expand All @@ -91,10 +87,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js 22.x
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 22.x
node-version-file: .nvmrc
cache: 'npm'

- name: Install dependencies
Expand All @@ -117,10 +113,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js 22.x
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 22.x
node-version-file: .nvmrc
cache: 'npm'

- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/endpoint-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js 22.x
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 22.x
node-version-file: .nvmrc
cache: 'npm'

- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js 22.x
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 22.x
node-version-file: .nvmrc
cache: 'npm'

- name: Install dependencies
Expand Down Expand Up @@ -156,10 +156,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js 22.x
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 22.x
node-version-file: .nvmrc
cache: 'npm'

- name: Install dependencies
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,20 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

# Trusted publishing requires Node 22.14.0+ and npm 11.5.1+
# Trusted publishing requires npm 11.5.1+
# See: https://docs.npmjs.com/trusted-publishers/
- name: Set up Node.js for npm trusted publishing
uses: actions/setup-node@v6
with:
node-version: '22'
node-version-file: .nvmrc
cache: npm
registry-url: https://registry.npmjs.org

# Node 22 bundles npm 10.x, but trusted publishing (OIDC) needs npm
# 11.5.1+. setup-node does not upgrade the bundled npm, so do it
# explicitly — without this the version guard below always fails.
# The bundled npm is not reliably new enough: Node 24.0.0 shipped npm
# 11.3.0, below the 11.5.1 that trusted publishing (OIDC) needs, and
# .nvmrc floats across the 24.x line. setup-node does not upgrade the
# bundled npm, so do it explicitly. Without this the version guard
# below fails on any runner that resolves to an early enough 24.x.
- name: Upgrade npm for trusted publishing
run: npm install -g npm@latest

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Setup Node.js for GitHub Packages
uses: actions/setup-node@v6
with:
node-version: 22.x
node-version-file: .nvmrc
cache: 'npm'
registry-url: 'https://npm.pkg.github.com'
scope: '@openhands'
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ OpenHands Agent Server.

### Prerequisites

- Node.js 22.12+
- Node.js 24+
- npm 10+

### Install dependencies
Expand Down
Loading