forked from discourse/discourse
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1 KB
/
Copy pathdeveloper-docs-lint.yml
File metadata and controls
47 lines (37 loc) · 1 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
name: Developer Docs Lint
on:
pull_request:
paths:
- "docs/developer-guides/**"
- ".github/workflows/developer-docs-lint.yml"
push:
branches:
- main
paths:
- "docs/developer-guides/**"
- ".github/workflows/developer-docs-lint.yml"
concurrency:
group: developer-docs-lint-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
cancel-in-progress: true
permissions:
contents: read
jobs:
prettier:
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
runs-on: ubuntu-latest
timeout-minutes: 5
defaults:
run:
working-directory: docs/developer-guides
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 1
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v6
with:
node-version: 24
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint