Skip to content

Commit

Permalink
Hack: use node14 for meditrak-app only
Browse files Browse the repository at this point in the history
Node will be bumped globally in RN-1090
  • Loading branch information
IgorNadj committed Nov 3, 2023
1 parent 25b3020 commit b477624
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.20.2
14.19.3
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"vite-plugin-ejs": "^1.6.4"
},
"engines": {
"node": "^16.20.2"
"node": "^14.19.3 || ^16.20.2"
},
"packageManager": "[email protected]"
}
3 changes: 3 additions & 0 deletions packages/meditrak-app/appcenter-post-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b477624

Please sign in to comment.