Repository navigation
79 lines (62 loc) · 2.18 KB
/
Copy pathrelease.yml
File metadata and controls
79 lines (62 loc) · 2.18 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Release
on:
push:
tags:
- "v*"
jobs:
release:
name: Verify & Publish Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Full history: the docs content check compares each page's
# `updated:` frontmatter against the last commit that touched it,
# which a shallow clone cannot answer.
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Cache Bun dependencies
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install dependencies
run: bun install --frozen-lockfile
# Quality Gate from AGENTS.md §1
- name: Lint
run: bun lint
- name: Typecheck
run: bun typecheck
- name: Design token check
run: bun run check:tokens
- name: Documentation content and prose checks
run: bun run check:content && bun run --cwd apps/docs lint:prose
- name: Documentation link and FAQ drift checks
run: bun run check:links && bun run --cwd apps/docs check:faq
- name: Documentation generated-reference drift checks
run: bun run --cwd apps/docs check:tokens:generated && bun run --cwd apps/docs check:errors:generated
- name: Test
run: bun run test
- name: Coverage
run: bun run test:coverage
- name: Build
run: bun run build
# Release verification assertions & note extraction
- name: Verify release tag and changelog
run: bun run scripts/changelog/verify-tag.ts --tag "${{ github.ref_name }}" --output-notes /tmp/release-notes.md
# Publish GitHub Release (never pushes a commit back)
- name: Publish GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref_name }}" \
--title "${{ github.ref_name }}" \
--notes-file /tmp/release-notes.md