-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 791 Bytes
/
ci.yml
File metadata and controls
43 lines (34 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Vite build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Sanity-check dist
run: |
test -f dist/index.html
test -d dist/assets
echo "Bundle size: $(du -sh dist | cut -f1)"
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
retention-days: 14