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