Skip to content

Commit

Permalink
fix deploy script #3
Browse files Browse the repository at this point in the history
  • Loading branch information
alexindevs committed Jul 18, 2024
1 parent f7b4395 commit 7addf3f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,22 @@ if ! command -v npm &> /dev/null
then
echo "npm could not be found, installing nvm, Node.js, and npm"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install 20
nvm use 20
else
# Ensure nvm is loaded
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
fi

pwd

git init

git remote set-url origin https://github.com/alexindevs/roomey-api.git

# Pull the latest changes from the main branch
Expand Down

0 comments on commit 7addf3f

Please sign in to comment.