diff --git a/.github/workflows/build-js.yml b/.github/workflows/build-js.yml index c69e5db80..77598517c 100644 --- a/.github/workflows/build-js.yml +++ b/.github/workflows/build-js.yml @@ -18,7 +18,7 @@ jobs: version: 9.0.6 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version-file: '.node-version' cache: pnpm cache-dependency-path: 'pnpm-lock.yaml' diff --git a/.github/workflows/publish-npm-package.yml b/.github/workflows/publish-npm-package.yml index 2ee8ba613..684b8b0c9 100644 --- a/.github/workflows/publish-npm-package.yml +++ b/.github/workflows/publish-npm-package.yml @@ -34,7 +34,7 @@ jobs: version: 9.15.4 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version-file: ".node-version" registry-url: "https://registry.npmjs.org" cache: pnpm cache-dependency-path: "**/pnpm-lock.yaml" diff --git a/.node-version b/.node-version new file mode 100644 index 000000000..ca5c35005 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +24.18.0 diff --git a/package.json b/package.json index f9231c4ca..4e4de6155 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,9 @@ { "name": "OpenUI", "version": "1.0.0", + "engines": { + "node": "24.18.0" + }, "description": "The open standard for generative UI — a streaming-first language, React runtime, and component libraries for building AI-powered chat and copilot interfaces", "main": "index.js", "scripts": {