From a01498067ba3eebdda6403b9178d4d42d8d1700a Mon Sep 17 00:00:00 2001 From: ding <82033388+ibiding@users.noreply.github.com> Date: Sat, 10 Apr 2021 14:49:00 +0800 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b40184b8..a684fb62 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,7 +1,7 @@ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: Node.js CI +name: Look CI on: push: @@ -10,19 +10,15 @@ on: branches: [ master ] jobs: - build: - + deploy: + name: Look deploy runs-on: self-hosted - - strategy: - matrix: - node-version: [14.x] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm test + - name: Git Checkout master + uses: actions/checkout@master + + - name: PM2 status + run: pm2 status + + - name: deploy + run: cd server && npm i && npm run start