-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (40 loc) · 980 Bytes
/
main.yml
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
name: CI build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: DerYeger/pnpm-setup-action@master
with:
node-version: latest
- name: Build
run: pnpm build-only
# Separate build and type check,
# because *.d.ts files aren't generated before build
- name: Type Check
run: pnpm type-check
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: |
./dist/
- name: Compress action step
uses: a7ul/[email protected]
id: compress
with:
command: c
cwd: ./
files: |
./dist
outPath: dist.tar.gz
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist.tar.gz