From b477624f8ff784c150e63da03600cff1b3a17003 Mon Sep 17 00:00:00 2001 From: Igor Nadj Date: Fri, 3 Nov 2023 15:43:55 +1100 Subject: [PATCH] Hack: use node14 for meditrak-app only Node will be bumped globally in RN-1090 --- .github/workflows/ci.yaml | 8 ++++---- .github/workflows/e2e.yaml | 2 +- .nvmrc | 2 +- package.json | 2 +- packages/meditrak-app/appcenter-post-clone.sh | 3 +++ 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e7a58e9213..4cd48c930c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,7 +36,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16.20.2 + node-version: 14.19.3 cache: yarn - run: yarn set version 3.2.1 - run: SKIP_BUILD_INTERNAL_DEPENDENCIES=true yarn install @@ -74,7 +74,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16.20.2 + node-version: 14.19.3 cache: yarn - run: yarn set version 3.2.1 - run: SKIP_BUILD_INTERNAL_DEPENDENCIES=true yarn install @@ -170,7 +170,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16.20.2 + node-version: 14.19.3 cache: yarn - run: yarn set version 3.2.1 - run: SKIP_BUILD_INTERNAL_DEPENDENCIES=true yarn install @@ -187,7 +187,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16.20.2 + node-version: 14.19.3 cache: yarn - run: yarn set version 3.2.1 - run: SKIP_BUILD_INTERNAL_DEPENDENCIES=true yarn install --immutable diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 52292511fd..23e88135fc 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16.20.2 + node-version: 14.19.3 cache: yarn - run: yarn set version 3.2.1 - run: SKIP_BUILD_INTERNAL_DEPENDENCIES=true yarn install diff --git a/.nvmrc b/.nvmrc index 1b497a7b3d..a5f7da7f08 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16.20.2 \ No newline at end of file +14.19.3 diff --git a/package.json b/package.json index 306011db0f..402aac78cb 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "vite-plugin-ejs": "^1.6.4" }, "engines": { - "node": "^16.20.2" + "node": "^14.19.3 || ^16.20.2" }, "packageManager": "yarn@3.2.1" } diff --git a/packages/meditrak-app/appcenter-post-clone.sh b/packages/meditrak-app/appcenter-post-clone.sh index cf680ac1f0..0717b2a2e0 100644 --- a/packages/meditrak-app/appcenter-post-clone.sh +++ b/packages/meditrak-app/appcenter-post-clone.sh @@ -10,6 +10,9 @@ env | grep "USER-DEFINED_.*" | awk -F "USER-DEFINED_" '{print $2}' > .env curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + +# Workaround for meditrak-app needing node v16 but the monorepo using v14 +echo "16.20.2" > ../../.nvmrc nvm install nvm use npm install -g yarn