From b9915f71e3f07783ee324b548bd200e82667dc5c Mon Sep 17 00:00:00 2001 From: Tobias Lehmann Date: Mon, 9 Sep 2024 10:42:25 +0200 Subject: [PATCH] added build pipeline for nodejs --- .gitea/workflows/build-nodejs.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .gitea/workflows/build-nodejs.yaml diff --git a/.gitea/workflows/build-nodejs.yaml b/.gitea/workflows/build-nodejs.yaml new file mode 100644 index 0000000..2058c06 --- /dev/null +++ b/.gitea/workflows/build-nodejs.yaml @@ -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