aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/bun-landing.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/bun-landing.yml b/.github/workflows/bun-landing.yml
new file mode 100644
index 000000000..33f7d08fc
--- /dev/null
+++ b/.github/workflows/bun-landing.yml
@@ -0,0 +1,44 @@
+name: bun-landing
+on:
+ push:
+ paths:
+ - packages/bun-landing/**/*
+ branches: [main]
+
+jobs:
+ build:
+ name: website build
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ node-version:
+ - 16
+
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v2
+
+ - name: Use Node ${{ matrix.node }}
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node }}
+
+ - name: Install bun
+ uses: xhyrom/setup-bun@v0.1.2
+ with:
+ bun-version: latest
+
+ - name: Install global dependencies
+ run: bun install
+
+ - name: Install package dependencies
+ run: cd packages/bun-landing && bun install
+
+ - name: Build
+ run: cd packages/bun-landing && bun run build.tsx
+
+ - name: Commit changes
+ uses: stefanzweifel/git-auto-commit-action@v4
+ with:
+ commit_message: build:(landing) automated website build