From 466f6058d0688bdc799d8f1f2a22290d2cdabc90 Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Fri, 20 Mar 2020 13:18:14 -0400 Subject: [PATCH] . --- .github/workflows/main.yml | 3 +-- package.json | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) 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",