-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no-issue: Remove MediTrak/nvm workaround #5436
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
## This file runs on appcenter automated builds | ||
## This file runs on App Center automated builds | ||
|
||
## Move environment variables saved by appcenter as USER-DEFINED_VARIABLE_NAME into .env, ready for react-native-dotenv | ||
echo "Setting up environment variables" | ||
## Move environment variables saved by App Center as USER-DEFINED_VARIABLE_NAME into .env, ready for react-native-dotenv | ||
echo -e "\033[32mSetting up environment variables\033m" | ||
env | grep "USER-DEFINED_.*" | awk -F "USER-DEFINED_" '{print $2}' > .env | ||
|
||
# install nvm, yarn | ||
# Install nvm, Yarn | ||
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 | ||
|
||
set -x | ||
|
||
# install meditrak-app and root (for shared scripts) | ||
# Install meditrak-app and root (for shared scripts) | ||
SKIP_BUILD_INTERNAL_DEPENDENCIES=true yarn workspaces focus tupaia @tupaia/meditrak-app | ||
|
||
# build meditrak-app deps | ||
# Build meditrak-app deps | ||
yarn workspace @tupaia/access-policy build-dev | ||
yarn workspace @tupaia/expression-parser build-dev | ||
|
||
## Appcenter does not support yarn workspaces (https://github.com/microsoft/appcenter/issues/278) | ||
## Workaround: symlink npm to echo so it doesnt run (appcenter will call `npm install` -> `echo install`) | ||
ln -sf $(which echo) $(which npm) | ||
## App Center does not support Yarn workspaces (https://github.com/microsoft/appcenter/issues/278) | ||
## Workaround: symlink `npm` to `echo` so it doesnt run (App Center will call `npm install` -> `echo install`) | ||
ln -sf $(which echo) $(which npm) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only actual change
The rest is capitalisation and
echo
-ing something in 🟩green🟩