From 042af6fa2386fe427ad382768a8a0c4a703d7161 Mon Sep 17 00:00:00 2001 From: William Chong Date: Wed, 7 Jun 2023 14:01:01 +0800 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20node=20to=2016?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 4 ++-- .github/workflows/lint_build.yml | 4 ++-- .github/workflows/production_build.yaml | 4 ++-- .github/workflows/release.yaml | 4 ++-- package.json | 3 +++ 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 58f971099..2c7a54d4d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,7 @@ jobs: checkout_code: docker: - - image: circleci/node:10 + - image: circleci/node:16 steps: - checkout - persist_to_workspace: @@ -9,7 +9,7 @@ jobs: paths: . analyse_js: docker: - - image: circleci/node:10 + - image: circleci/node:16 steps: - attach_workspace: at: . diff --git a/.github/workflows/lint_build.yml b/.github/workflows/lint_build.yml index ffa290ebe..f8ff65007 100644 --- a/.github/workflows/lint_build.yml +++ b/.github/workflows/lint_build.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 16 - name: Get yarn cache id: yarn-cache run: echo "::set-output name=dir::$(yarn cache dir)" @@ -42,7 +42,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 16 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/.github/workflows/production_build.yaml b/.github/workflows/production_build.yaml index 1fbb816e6..dc698d482 100644 --- a/.github/workflows/production_build.yaml +++ b/.github/workflows/production_build.yaml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 16 - name: Get yarn cache id: yarn-cache run: echo "::set-output name=dir::$(yarn cache dir)" @@ -67,7 +67,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 16 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 647c62d18..014f32a33 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 16 - name: Set release version and build number env id: version-format run: | @@ -76,7 +76,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 16 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/package.json b/package.json index 5c5cf27ae..35ded9d32 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,9 @@ "name": "likecoin-app", "version": "0.31.3", "private": true, + "engine": { + "node": ">=16" + }, "scripts": { "start": "react-native start", "start:clean": "react-native start --reset-cache",