Skip to content

Commit c32efc9

Browse files
committed
fix: nvm 설치 로직 추가
1 parent 0963d6d commit c32efc9

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/auto-cd(dev).yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ jobs:
3939
- name: 원격 서버에 배포
4040
run: |
4141
ssh -o StrictHostKeyChecking=no ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }} << 'EOF'
42-
node -v
43-
nvm use 18.16
44-
pwd
45-
ls
42+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
43+
export NVM_DIR="$HOME/.nvm"
44+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # nvm을 현재 세션에서 사용하기 위해 로드
45+
46+
nvm install 18
47+
nvm use 18
4648
cd ${{ env.DEPLOY_PATH }}
4749
git fetch --all
4850
git pull origin ${{ env.BRANCH }}

0 commit comments

Comments
 (0)