-
Notifications
You must be signed in to change notification settings - Fork 1.3k
49 lines (43 loc) · 1.28 KB
/
Copy pathvalidate-skills.yml
File metadata and controls
49 lines (43 loc) · 1.28 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
name: Validate Skills
# PR-time guard rails. Runs on every push / PR that touches a skill, the
# release scripts, or any localized README. Cheap, fast, no side effects.
on:
pull_request:
paths:
- "skills/**"
- "scripts/release/**"
- "README.md"
- "README.zh-CN.md"
- "README.ja-JP.md"
- ".github/workflows/validate-skills.yml"
- "package.json"
push:
branches: ["main"]
paths:
- "skills/**"
- "scripts/release/**"
- "README.md"
- "README.zh-CN.md"
- "README.ja-JP.md"
- ".github/workflows/validate-skills.yml"
- "package.json"
workflow_dispatch: {}
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
steps:
# Tags are required for `npm run readme:check` — it resolves each
# skill's "currently published" version from the latest <skill>-v*
# tag. Without fetch-tags the runner sees no tags and reports every
# skill as "no release yet", which contradicts the actual README.
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Validate manifests, smoke-pack, and verify README sync
run: npm run validate