diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 13d9318..ca69dc1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,5 @@ jobs: with: ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} if: github.ref == 'refs/heads/master' - - run: | - true + - run: npm run deploy if: github.ref == 'refs/heads/master' diff --git a/package.json b/package.json index d2590bf..9b35f5e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "scripts": { "start": "concurrently \"tsc --watch\" \"nodemon lib\"", - "test": "tsc && jest && prettier --check 'src/**'" + "test": "tsc && jest && prettier --check 'src/**'", + "deploy": "pm2 deploy production" }, "dependencies": { "crypto-random-string": "^3.2.0",