From e9360aae822a1fbd6769eb7dd93dcb8faf5669c6 Mon Sep 17 00:00:00 2001 From: Michael morais <53665466+itsmorais@users.noreply.github.com> Date: Tue, 3 Sep 2024 22:14:25 -0300 Subject: [PATCH] Update github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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