@mcptoolshop/a11y-evidence-engine 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,8 +3,27 @@ name: CI
3
3
  on:
4
4
  push:
5
5
  branches: [ main ]
6
+ paths:
7
+ - "src/**"
8
+ - "bin/**"
9
+ - "fixtures/**"
10
+ - "package.json"
11
+ - "package-lock.json"
12
+ - ".github/workflows/**"
6
13
  pull_request:
7
14
  branches: [ main ]
15
+ paths:
16
+ - "src/**"
17
+ - "bin/**"
18
+ - "fixtures/**"
19
+ - "package.json"
20
+ - "package-lock.json"
21
+ - ".github/workflows/**"
22
+ workflow_dispatch:
23
+
24
+ concurrency:
25
+ group: ${{ github.workflow }}-${{ github.ref }}
26
+ cancel-in-progress: true
8
27
 
9
28
  jobs:
10
29
  test:
@@ -12,7 +31,7 @@ jobs:
12
31
 
13
32
  strategy:
14
33
  matrix:
15
- node-version: [18.x, 20.x, 22.x]
34
+ node-version: [20.x, 22.x]
16
35
 
17
36
  steps:
18
37
  - uses: actions/checkout@v4
@@ -31,7 +50,7 @@ jobs:
31
50
 
32
51
  - name: Verify CLI works
33
52
  run: |
34
- node bin/a11y-engine.js scan fixtures/html --out test-results
53
+ node bin/a11y-engine.js scan fixtures/bad --out test-results || test $? -eq 2
35
54
  test -d test-results
36
55
 
37
56
  lint:
@@ -0,0 +1,50 @@
1
+ name: Deploy site to GitHub Pages
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ paths:
7
+ - 'site/**'
8
+ - '.github/workflows/pages.yml'
9
+ workflow_dispatch:
10
+
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress: true
14
+
15
+ permissions:
16
+ contents: read
17
+ pages: write
18
+ id-token: write
19
+
20
+ jobs:
21
+ build:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+
26
+ - uses: actions/setup-node@v4
27
+ with:
28
+ node-version: 22
29
+
30
+ - name: Install site dependencies
31
+ working-directory: site
32
+ run: npm ci
33
+
34
+ - name: Build site
35
+ working-directory: site
36
+ run: npm run build
37
+
38
+ - uses: actions/upload-pages-artifact@v3
39
+ with:
40
+ path: site/dist
41
+
42
+ deploy:
43
+ needs: build
44
+ runs-on: ubuntu-latest
45
+ environment:
46
+ name: github-pages
47
+ url: ${{ steps.deployment.outputs.page_url }}
48
+ steps:
49
+ - id: deployment
50
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,48 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+
8
+ concurrency:
9
+ group: ${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress: true
11
+
12
+ jobs:
13
+ publish:
14
+ runs-on: ubuntu-latest
15
+ permissions:
16
+ contents: read
17
+ id-token: write
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - uses: actions/setup-node@v4
22
+ with:
23
+ node-version: 22
24
+ registry-url: https://registry.npmjs.org
25
+
26
+ - name: Install dependencies
27
+ run: |
28
+ if [ -f package-lock.json ]; then
29
+ npm ci
30
+ else
31
+ npm install
32
+ fi
33
+
34
+ - run: npm run build --if-present
35
+
36
+ - run: npm test --if-present
37
+
38
+ - name: Publish to npm
39
+ continue-on-error: true
40
+ run: |
41
+ if [ -z "$NODE_AUTH_TOKEN" ]; then
42
+ echo "::warning::NPM_TOKEN secret not set — skipping npm publish"
43
+ exit 0
44
+ fi
45
+ npm publish --provenance --access public
46
+ env:
47
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
48
+