From c0685ea91ebe3fd2c57b6ca723277a468e0db587 Mon Sep 17 00:00:00 2001 From: ehsan shariati Date: Sun, 13 Oct 2024 19:50:05 -0400 Subject: [PATCH] Update ci_post_clone.sh --- apps/box/ios/ci_scripts/ci_post_clone.sh | 33 ++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/apps/box/ios/ci_scripts/ci_post_clone.sh b/apps/box/ios/ci_scripts/ci_post_clone.sh index a58bbea5..94750779 100644 --- a/apps/box/ios/ci_scripts/ci_post_clone.sh +++ b/apps/box/ios/ci_scripts/ci_post_clone.sh @@ -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 \ No newline at end of file + +# 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 \ No newline at end of file