-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (51 loc) · 1.58 KB
/
release.yml
File metadata and controls
65 lines (51 loc) · 1.58 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
name: Build and release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version-file: ".node-version"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run all checks
run: |
pnpm typecheck
pnpm lint
pnpm test
pnpm validate
pnpm lint-ids
pnpm check-references
- name: Export JSON
run: pnpm export-json
- name: Export web bundle
run: pnpm export-web
- name: Create release archive
run: |
cd build/exports
tar -czf ../../clarvia-graph-${{ github.ref_name }}.tar.gz .
cd ../..
- name: Create GitHub Release
uses: softprops/action-gh-release@v3
with:
files: clarvia-graph-${{ github.ref_name }}.tar.gz
generate_release_notes: true
body: |
## Clarvia Graph ${{ github.ref_name }}
This release contains:
- `json/` — full graph data as JSON
- `web/manifest.json` — web runtime manifest
- `web/intake/*.json` — intake question sets per life event
- `web/runtime/*.json` — pre-compiled runtime data per life event
The web export zip (`clarvia-web-export-*.zip`) is attached separately
by the Release Web Export workflow.