diff --git a/.github/workflows/firebase-live.yml b/.github/workflows/firebase-live.yml index 38f38311..73dd08be 100644 --- a/.github/workflows/firebase-live.yml +++ b/.github/workflows/firebase-live.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22.14.0' cache: 'pnpm' - run: pnpm install diff --git a/.github/workflows/firebase-preview.yml b/.github/workflows/firebase-preview.yml index 3b97697c..71e7aeab 100644 --- a/.github/workflows/firebase-preview.yml +++ b/.github/workflows/firebase-preview.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22.14.0' cache: 'pnpm' - run: pnpm install diff --git a/.github/workflows/refresh-index-chains.yml b/.github/workflows/refresh-index-chains.yml index 13469017..e15cd939 100644 --- a/.github/workflows/refresh-index-chains.yml +++ b/.github/workflows/refresh-index-chains.yml @@ -22,7 +22,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22.14.0' cache: 'pnpm' - run: pnpm install diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 63b06685..52a3f7fa 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,7 +13,7 @@ information about getting started and making a contribution to the API3 Docs. ### Pre-requisites -- [Node.js](https://nodejs.org/en/) (version 20 or higher). +- [Node.js](https://nodejs.org/en/) (version 22 or higher). - Unix/macOS/WSL for the scripts to work properly. ### Installation diff --git a/docs/dev/index.md b/docs/dev/index.md index e8bb7f88..5db2fda0 100644 --- a/docs/dev/index.md +++ b/docs/dev/index.md @@ -12,16 +12,13 @@ tags: # {{$frontmatter.title}} -Use newer versions of Nodejs. Currently the builds on GitHub are using `v20`. +Use newer versions of Nodejs. Currently the builds on GitHub are using `v22`. Mac users (Apple silicon) should see the page [Rosetta, Nodejs, esbuild](/dev/rosetta.md) if you get an error. -::: info Nodejs `v20` +::: info Nodejs `v22` -It is best to use nodejs `v20` which gives the best performance and is the -engine described in the -[package.json](https://github.com/api3dao/airnode-docs/blob/main/package.json) -file. +It is best to use nodejs `v22` as this is what is used in GitHub Actions ::: diff --git a/docs/dev/rosetta.md b/docs/dev/rosetta.md index 7e028ea5..234d4e2d 100644 --- a/docs/dev/rosetta.md +++ b/docs/dev/rosetta.md @@ -21,12 +21,9 @@ wrong [esbuild](https://esbuild.github.io/getting-started/) package. It is best to use a version of Nodejs and NPM installed with its installer or install it using your CLI with Rosetta deactivated. -::: info Nodejs `v20` +::: info Nodejs `v22` -It is best to use nodejs `v20` which gives the best performance and is the -engine described in the -[package.json](https://github.com/api3dao/airnode-docs/blob/main/package.json) -file. +It is best to use nodejs `v22` as this is what is used in GitHub Actions ::: diff --git a/package.json b/package.json index d5c194dd..dc2c0cc5 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,6 @@ "version": "1.0.0", "main": "index.js", "license": "MIT", - "engines": { - "node": "20" - }, "packageManager": "pnpm@9.15.2", "scripts": { "sync:VPFlyout": "cp docs/_components/vitepress/VPFlyout.vue node_modules/vitepress/dist/client/theme-default/components/VPFlyout.vue",