Skip to content

Commit d3462bc

Browse files
authored
Merge pull request #71 from ChooseTale/feat/atc/CD
fix: node -v 확인 로직 추가
2 parents ac5f534 + c32efc9 commit d3462bc

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,15 @@ jobs:
3636
ssh-private-key: ${{ env.SERVER_SSH_KEY }}
3737
ssh-passphrase: ${{ env.SERVER_SSH_PASSPHRASE }}
3838

39-
- name: Set up Node.js
40-
uses: actions/setup-node@v3
41-
with:
42-
node-version: '18'
43-
4439
- name: 원격 서버에 배포
4540
run: |
4641
ssh -o StrictHostKeyChecking=no ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }} << 'EOF'
47-
pwd
48-
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
4948
cd ${{ env.DEPLOY_PATH }}
5049
git fetch --all
5150
git pull origin ${{ env.BRANCH }}

0 commit comments

Comments
 (0)