From e732edbe7c730728b35dc391310bb890d48a9539 Mon Sep 17 00:00:00 2001 From: Arthur Danjou Date: Mon, 1 Jun 2020 22:55:23 +0200 Subject: [PATCH] Create node.js.yml --- .github/workflows/node.js.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..61599b6 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,24 @@ +name: Node.js CI + +on: [push] + +jobs: + build: + + runs-on: self-hosted + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run build --if-present + - run: pm2 reload next-js + env: + CI: true