Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I’ve created a droplet that has a laravel application running. I want to set up continious intergration for this, so far i’ve ssh into the droplet and i’ve been able to run composer and clone down the latest part from the repo.
The issue occurs when i get to running npm, I’ve followed the tutorial of installing this via nvm. But when i need to access run npm via github actions i get the issue “bash: line 4: npm: command not found”. If i SSH into the service, this works fine. Any guesses on what i’ve done wrong to resolve this?
name: Build and deploy
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy Laravel APP
uses: appleboy/ssh-action@v0.1.4
with:
host: ${{secrets.SSH_HOST}}
key: ${{secrets.SSH_KEY}}
username: ${{ secrets.SSH_USER }}
script: |
cd /var/www/admin
git pull origin master
composer install
npm install
npm run prod
Laveenk16
SonuKrJe
016512ea60864da0867e5280f293de
f9ccf41c1c3743eb9a1071f9dae7a7
KFSys
9e88c3e13bc3486b8d5b03587df754
Shaun
grime3ja
JSA+Partners Admin
Mark Reeves
Whathetech
1cc989f14bd449869796256cff236f