Skip to content

Commit

Permalink
fix: get nvm installation before running restart script
Browse files Browse the repository at this point in the history
  • Loading branch information
DerDomee committed Oct 5, 2024
1 parent 69bd723 commit 92b6452
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
username: ${{secrets.PRODUCTION_DEPLOY_SSH_USERNAME}}
key: ${{secrets.PRODUCTION_DEPLOY_SSH_KEY}}
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
cd ${{secrets.PRODUCTION_DEPLOY_SSH_REMOTE_PATH}}
npm ci --omit=dev
pm2 restart ./ecosystem.config.js --env production

0 comments on commit 92b6452

Please sign in to comment.