-
Notifications
You must be signed in to change notification settings - Fork 195
67 lines (55 loc) · 1.71 KB
/
Copy pathbuild.yml
File metadata and controls
67 lines (55 loc) · 1.71 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
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
id: build
run: npm run build
- name: Comment link validation issues on PR
if: |
always() &&
github.event_name == 'pull_request' &&
steps.build.outputs.link_validation_failed == 'true'
uses: marocchino/sticky-pull-request-comment@v3
with:
header: starlight-links-validator
message: |
## Starlight links validator found issues
The docs build reported link validation issues.
- Check the **job summary** table in this run for file/link details.
- Run URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- name: Remove stale link validation comment
if: |
always() &&
github.event_name == 'pull_request' &&
steps.build.outputs.link_validation_failed != 'true'
uses: marocchino/sticky-pull-request-comment@v3
with:
header: starlight-links-validator
delete: true
- name: Build API Docs styles
run: npm run build:api
- name: Find unused images
run: npm run find-unused-images