-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.25 KB
/
docs-analysis.yml
File metadata and controls
51 lines (40 loc) · 1.25 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
name: 'docs-analysis'
on:
push:
paths:
- 'CHANGELOG.md'
- '.claude/**/*.md'
- 'docs/**/*.md'
- 'package.json'
- 'pnpm-lock.yaml'
- '.markdownlint-cli2.yaml'
- '.github/workflows/docs-analysis.yml'
branches-ignore:
- release
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-markdown:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 1
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
- uses: pnpm/action-setup@b307475762933b98ed359c036b0e51f26b63b74b # v5.0.0
- name: get pnpm store path
id: pnpm-store
run: echo "path=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
id: pnpm-cache
with:
path: './node_modules'
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: install dependencies
if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm install
- name: lint markdown
run: pnpm run lint:markdown