From ccd5545779719a24ce47b849b600714d8059cd96 Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Wed, 28 May 2025 13:59:52 +1000 Subject: [PATCH] feat: add workflow for building the extension with Node.js --- .gitea/workflows/workflow.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/workflow.yaml diff --git a/.gitea/workflows/workflow.yaml b/.gitea/workflows/workflow.yaml new file mode 100644 index 0000000..96ec369 --- /dev/null +++ b/.gitea/workflows/workflow.yaml @@ -0,0 +1,31 @@ +name: Build Extension + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install dependencies + run: npm install + + - name: Build extension + run: npm run build + + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: extension-build + path: dist/ \ No newline at end of file