Skip to content

updatign node version #47

updatign node version

updatign node version #47

Workflow file for this run

name: Deploy
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '^20'
- name: SSH Remote Commands
uses: appleboy/[email protected]
with:
USERNAME: ${{ secrets.USERNAME }}
HOST: ${{ secrets.HOST }}
PASSWORD: ${{ secrets.PASSWORD }}
script: |
cd bahja-isaac-nas-discord-chatbot
git pull
npm i
pm2 stop index.js
pm2 start index.js --name chatbot