Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Add a makefile for easier builds #418

Add a makefile for easier builds

Add a makefile for easier builds #418

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, 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
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Build dist using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: mkdir dist
- run: npm install
- run: npm run build --if-present
- run: npm ci --prod
- name: Add artifacts to bundle
run: |
cp -r build package.json node_modules dist/
- name: Use Upload Artifact GitHub Action
uses: actions/upload-artifact@v2
with:
name: upvent-build
path: dist