-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.97 KB
/
Copy pathdocs.yml
File metadata and controls
62 lines (51 loc) · 1.97 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
# Blocking documentation checks for pull requests.
#
# `validate-links` also runs inside `prebuild`, so a broken link already fails
# the Vercel build. This job exists to make that a fast, named status check
# that branch protection can require, rather than a failure buried in a
# deploy log.
name: Docs
on:
pull_request:
# v2 is the live documentation line. `main` is deliberately excluded: it
# trails v2 by ~100 commits and its bun.lock is out of sync with its
# package.json, so `--frozen-lockfile` fails there for reasons that have
# nothing to do with links. Add `main` here once #37 lands and makes it
# current.
branches: [v2]
push:
branches: [v2]
workflow_dispatch:
# A PR that gets pushed to twice shouldn't queue behind its own stale run.
concurrency:
group: docs-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
links:
name: Internal links
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v5
- uses: oven-sh/setup-bun@v2
with:
# Pinned rather than `latest` so a bun release can't turn a
# required check red on its own.
bun-version: 1.3.13
- run: bun install --frozen-lockfile
# The TypeDoc references under the V2 integration/reference sections are
# gitignored and built from a clone of cipherstash/stack. Links point
# into them, so without this step those targets report as missing.
# `prebuild` generates before validating for the same reason.
- name: Generate the SDK reference
run: bun run generate-docs
- name: Generate the Supabase reference
run: bun run generate-docs:supabase
- name: Generate the Drizzle reference
run: bun run generate-docs:drizzle
- name: Generate the Prisma reference
run: bun run generate-docs:prisma
- name: Validate internal links and anchors
run: bun run validate-links