added build pipeline for nodejs

This commit is contained in:
Tobias Lehmann 2024-09-09 10:42:25 +02:00
parent b972e44b5e
commit b9915f71e3

View File

@ -0,0 +1,16 @@
name: Nodejs build workflow
on:
workflow_call:
jobs:
build:
name: Build nodejs distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
- run: npm run build --if-present
- run: npm test --if-present