summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-15 16:26:47 +0800
committerEltrac <hi@guhub.cn>2025-09-15 16:26:47 +0800
commit60759c902a626304058a7757952c21e71c12677a (patch)
treeb2ce3ffb78e910ef099e9156cb46bf8e1f80766e /.github
parent48bfcdd2759dc686e01118415742686f5a01c99e (diff)
chore(git): set up building workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..7649ceb
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,22 @@
+name: Build and Minify on Commit
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+ - name: Set up Node.js
+ uses: actions/setup-node@v2
+ with:
+ node-version: '14'
+ - name: Install dependencies
+ run: npm install
+ - name: Run build
+ run: npm run build