diff options
author | Robin Appelman <robin@icewind.nl> | 2021-02-26 20:54:20 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-02-26 20:54:20 +0300 |
commit | bfa2605cbdc4aa6628c3f3b4a1909ed369cee88a (patch) | |
tree | 16c1a84e3f04f184e251fea213f88932a395b0ed | |
parent | d503c2eff4dd09df695fadd84e75ae21580b847d (diff) |
basic ci
-rw-r--r-- | .github/workflows/nodejs.yml | 23 | ||||
-rw-r--r-- | package.json | 3 |
2 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..6f13d9e --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,23 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-20.04 + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build + run: | + npm ci + npm run build diff --git a/package.json b/package.json index 6e3f759..cda5acc 100644 --- a/package.json +++ b/package.json @@ -41,5 +41,8 @@ "uglifyjs-webpack-plugin": "^2.2.0", "webpack": "^5.24.2", "webpack-cli": "^4.5.0" + }, + "scripts": { + "build": "webpack --mode production" } } |