Skip to content

Commit

Permalink
Update ci_post_clone.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Oct 13, 2024
1 parent 2f76102 commit c0685ea
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions apps/box/ios/ci_scripts/ci_post_clone.sh
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

0 comments on commit c0685ea

Please sign in to comment.