From 68b70055ac02bceabbf1c9008d94be4d082abaef Mon Sep 17 00:00:00 2001 From: Alex Todorov Date: Mon, 4 Dec 2023 20:19:42 +0200 Subject: [PATCH] Switch to Node.js v20 before we can upgrade @polkadot dependencies @polkadot/keyring@12.6.1: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.20.2" --- .github/workflows/ci.yml | 16 ++++++++-------- .github/workflows/extrinsics.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/runtime-upgrade.yml | 4 ++-- .github/workflows/runtime.yml | 2 +- Dockerfile | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 011b2fc4de..23e00e316a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,7 +101,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm install -g yarn - name: Install creditcoin-js & creditcoin-cli @@ -313,7 +313,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm install -g yarn - name: Execute tests @@ -393,7 +393,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm install -g yarn - name: Install creditcoin-js & creditcoin-cli @@ -464,7 +464,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install Rust toolchain uses: actions-rs/toolchain@v1 @@ -591,7 +591,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm install -g yarn - name: Prepare for integration tests @@ -675,7 +675,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm install -g yarn - name: Run tools @@ -701,7 +701,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm install -g yarn - name: Run tools @@ -727,7 +727,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm install -g yarn - name: Run tools diff --git a/.github/workflows/extrinsics.yml b/.github/workflows/extrinsics.yml index adbaaf0bef..10ac28c674 100644 --- a/.github/workflows/extrinsics.yml +++ b/.github/workflows/extrinsics.yml @@ -22,7 +22,7 @@ jobs: - name: Install Node Dependencies uses: actions/setup-node@v4 with: - node-version: 16.x + node-version: 20 - run: npm install --ignore-scripts -g @polkadot/metadata-cmp - name: Set-Up diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b8dc00db52..be15471c91 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -205,7 +205,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm install -g yarn - name: Figure out tag name diff --git a/.github/workflows/runtime-upgrade.yml b/.github/workflows/runtime-upgrade.yml index 4cda2f4a64..ea7fae0094 100644 --- a/.github/workflows/runtime-upgrade.yml +++ b/.github/workflows/runtime-upgrade.yml @@ -353,7 +353,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm install -g yarn - name: Prepare for integration tests @@ -477,7 +477,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm install -g yarn - name: Prepare for integration tests diff --git a/.github/workflows/runtime.yml b/.github/workflows/runtime.yml index 4fbc6efefc..33451ac3b4 100644 --- a/.github/workflows/runtime.yml +++ b/.github/workflows/runtime.yml @@ -51,7 +51,7 @@ jobs: - name: Install JS Dependencies uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: | npm install -g yarn pushd ./creditcoin-js && yarn install && yarn pack && popd diff --git a/Dockerfile b/Dockerfile index 6b12edb148..42e8059266 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN apt-get update && \ apt-get upgrade -y && \ apt-get install -y --no-install-recommends ca-certificates curl && \ update-ca-certificates && \ - curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \ + curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ apt-get install -y nodejs --no-install-recommends && \ npm install -g yarn