Skip to content

Specifying node v20

Specifying node v20 #6

Workflow file for this run

name: Deploy to Digital Ocean
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Install SSH Key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.PRIVATE_KEY }}
- name: Deploy to Digital Ocean
run: |
ssh -o StrictHostKeyChecking=no [email protected]<< 'ENDSSH'
nvm use 20
which node
which npm
cd /var/www/forage-abq
git pull origin main
npm install
npm run build
ENDSSH