From 421b17d57f5d958c67f089f1a67e44b0f8aae9c1 Mon Sep 17 00:00:00 2001 From: xangelo Date: Tue, 3 Dec 2024 18:43:03 -0500 Subject: [PATCH] chore(build): build using github actions --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a4e92d9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build + +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.7.0' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build:prod + + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: dist + path: dist/ -- 2.25.1