Skip to content

Mobile MCP: let AI agents drive your iOS and Android apps. MCP server for simulators, emulators and real devices. Works with Claude Code, Codex, Cursor and any MCP client.

ci: run npm audit only when package.json or package-lock.json change (#540)

Gil Megidish76cd364e9a59
diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml
new file mode 100644
index 0000000..b91374b
--- /dev/null
+++ b/.github/workflows/audit.yml
@@ -0,0 +1,34 @@
+name: Audit
+permissions:
+ contents: read
+
+on:
+ push:
+ branches:
+ - main
+ paths:
+ - "package.json"
+ - "package-lock.json"
+ pull_request:
+ branches:
+ - main
+ paths:
+ - "package.json"
+ - "package-lock.json"
+
+jobs:
+ audit:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v5
+ with:
+ persist-credentials: false
+
+ - name: Use Node.js 24
+ uses: actions/setup-node@v5
+ with:
+ node-version: '24'
+
+ - name: Audit
+ run: npm audit --audit-level high --omit dev
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 2ece33f..e3be784 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -36,9 +36,6 @@ jobs:
- name: Install dependencies
run: npm ci --ignore-scripts
- - name: Audit
- run: npm audit --audit-level high --omit dev
-
- name: Lint
run: npm run lint