DEV Community

Discussion on: Setting up PM2 CI deployments with Github Actions

Collapse
 
arpitvasani profile image
Arpit Vasani

Thanks for making this. PM2 docs is very short on several big commands/switches. Had to made several changes in my case but very useful tutorial. 👍👍

not sure you faced this or not but in my case github was throwing an error when using your yml which is

name: CI - Master
  on:
    push:
      branches: [ main ] 
Enter fullscreen mode Exit fullscreen mode

What ended up working was

name: CI - Master
on:  # no indentation needed in this section 
  push:
    branches: [ main ]
Enter fullscreen mode Exit fullscreen mode