added build pipeline for nodejs
This commit is contained in:
parent
b972e44b5e
commit
b9915f71e3
16
.gitea/workflows/build-nodejs.yaml
Normal file
16
.gitea/workflows/build-nodejs.yaml
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user