Update ci_post_clone.sh

This commit is contained in:
Marcos Rodriguez Velez 2024-04-10 18:46:25 -04:00
parent 0980a9266d
commit 313382a5c4
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7

View File

@ -9,7 +9,17 @@ echo "===== Installing Node.js ====="
brew install node@18 brew install node@18
echo "Node.js installation complete." echo "Node.js installation complete."
# Note: Removed yarn installation as per request to use npm instead. # Configure environment to use node@18
echo "Configuring environment to use node@18..."
echo 'export PATH="/usr/local/opt/node@18/bin:$PATH"' >> ~/.zshrc
export PATH="/usr/local/opt/node@18/bin:$PATH"
echo 'export LDFLAGS="-L/usr/local/opt/node@18/lib"' >> ~/.zshrc
export LDFLAGS="-L/usr/local/opt/node@18/lib"
echo 'export CPPFLAGS="-I/usr/local/opt/node@18/include"' >> ~/.zshrc
export CPPFLAGS="-I/usr/local/opt/node@18/include"
echo "Configuration complete."
# Install dependencies using npm # Install dependencies using npm
echo "===== Running npm install =====" echo "===== Running npm install ====="
@ -20,6 +30,6 @@ echo "===== Running pod install ====="
cd ios cd ios
pod install | tee pod-install-log.txt pod install | tee pod-install-log.txt
echo "pod install complete. Full log output in pod-install-log.txt" echo "pod install complete. Full log output in pod-install-log.txt"
cd ..
echo "===== Installation and Setup Complete =====" echo "===== Installation and Setup Complete ====="