-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
2 deletions.
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,4 +1,33 @@ | ||
# !/bin/sh | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Install Node.js | ||
NODE_VERSION=16 | ||
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" | ||
nvm install $NODE_VERSION | ||
nvm use $NODE_VERSION | ||
|
||
# Install CocoaPods | ||
brew install cocoapods | ||
pod install | ||
|
||
# Navigate to the fx-components directory | ||
cd $CI_WORKSPACE/fx-components | ||
|
||
# Install yarn dependencies | ||
yarn install | ||
|
||
# Navigate to the iOS directory | ||
cd apps/box/ios | ||
|
||
# Install pods | ||
pod install | ||
|
||
# Return to the project root | ||
cd $CI_WORKSPACE | ||
|
||
# Print Node.js and npm versions for debugging | ||
node --version | ||
npm --version |