diff --git a/.drone.yml b/.drone.yml index 50c0f5b..142ae35 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,9 +20,14 @@ steps: # - git commit -m "Update README.md 🐦" # - git push origin main - - name: node - image: node:14 + - name: backend + image: node:14 # Use an appropriate Node.js version commands: - - npm run serve & - - sleep 300 - - npm run serve & + - cd /drone/src # Change to the directory containing your Node.js project + - npm install # Install dependencies (if needed) + - npm run serve # Run your npm command + + - name: delay + image: alpine + commands: + - sleep 300 # Sleep for 5 minutes (300 seconds)