diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index eb077a0..ae185df 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -18,11 +18,11 @@ jobs: key: ${{secrets.VPS_SSH_KEY}} port: 22 script: | + cd /home/Dnutri + git pull origin main export NVM_DIR='/root/.nvm'; source \$NVM_DIR/nvm.sh; export PATH=/root/.nvm/versions/node/v22.7.0/bin:\$PATH; - cd /home/Dnutri - git pull origin main cd backend pm2 stop src npm i && pm2 start src