Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/cd-mobile-mcp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: 'CD: mobile-mcp'

on:
push:
tags: ['mobile-mcp-v*']
workflow_dispatch:
inputs:
version:
description: 'Version to publish (without v prefix, e.g. 0.1.0)'
required: true
dry_run:
description: 'Dry run (build only, no publish)'
required: false
type: 'boolean'
default: true

permissions:
contents: 'read'
id-token: 'write'

jobs:
build-and-publish:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'

- uses: 'actions/setup-node@v5'
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'

- name: 'Determine version'
id: 'version'
run: |
if [[ "$GITHUB_REF" == refs/tags/mobile-mcp-v* ]]; then
VERSION="${GITHUB_REF#refs/tags/mobile-mcp-v}"
else
VERSION="${{ inputs.version }}"
Comment thread
LaZzyMan marked this conversation as resolved.
Resolved
fi
echo "version=$VERSION" >> "$GITHUB_OUTPUT"

- name: 'Install dependencies'
working-directory: 'packages/mobile-mcp'
run: 'npm ci --ignore-scripts'

- name: 'Lint'
Comment thread
LaZzyMan marked this conversation as resolved.
Resolved
working-directory: 'packages/mobile-mcp'
run: 'npm run lint'

- name: 'Set version'
working-directory: 'packages/mobile-mcp'
run: 'npm version "${{ steps.version.outputs.version }}" --no-git-tag-version'

- name: 'Build'
working-directory: 'packages/mobile-mcp'
run: 'npm run build'

- name: 'Test'
working-directory: 'packages/mobile-mcp'
run: 'npx playwright test test/coord-norm.test.ts'

- name: 'Publish'
if: '${{ !inputs.dry_run }}'
working-directory: 'packages/mobile-mcp'
run: 'npm publish --access public --provenance'
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default tseslint.config(
'.qwen/**',
'packages/desktop/**',
'packages/cua-driver/**', // vendored trycua/cua driver (Rust + scripts); not qwen-code TS
'packages/mobile-mcp/**', // vendored mobile-next/mobile-mcp; has own eslint config
],
},
eslint.configs.recommended,
Expand Down
Loading
Loading