-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (56 loc) · 1.4 KB
/
validate-plugin.yml
File metadata and controls
66 lines (56 loc) · 1.4 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
name: Validate Cursor Plugin
on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- ".cursor-plugin/**"
- ".github/**"
- ".gitignore"
- ".node-version"
- "assets/**"
- "mcp.json"
- "package.json"
- "package-lock.json"
- "README.md"
- "SUBMISSION.md"
- "rules/**"
- "agents/**"
- "commands/**"
- "schemas/**"
- "scripts/**"
- "CHANGELOG.md"
- "skills/**"
- "SECURITY.md"
- "LICENSE"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
validate:
name: Validate package
runs-on: ubuntu-latest
timeout-minutes: 15
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
steps:
- name: Checkout repository
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- name: Setup Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version-file: ".node-version"
cache: npm
- name: Install dependencies
run: npm ci
- name: Audit dependencies (high or critical)
run: npm audit --audit-level=high
- name: Validate plugin and hosted health
run: npm run check