Skip to content

Instantly share code, notes, and snippets.

@skolhustick
Created February 7, 2020 10:26
Show Gist options
  • Save skolhustick/912abd635762e3042fee999a5dde2dc5 to your computer and use it in GitHub Desktop.
Save skolhustick/912abd635762e3042fee999a5dde2dc5 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment