Expo 应用发布部署
expo-deployment
将 Expo 应用部署到 iOS App Store、Android Play Store、Web 托管服务以及 API 路由。
- License 许可
- MIT
- 最近更新
- 2026-09-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- expo-deployment
- license
- MIT
- version
- 1.0.0
- description
- Deploying Expo apps to iOS App Store, Android Play Store, web hosting, and API routes
02 资源文件 7
- 参考文档agents/openai.yaml122 B
- 参考文档references/app-store-metadata.md13.0 KB
- 参考文档references/ios-app-store.md6.9 KB
- 参考文档references/play-store.md5.1 KB
- 参考文档references/testflight.md1.6 KB
- 参考文档references/workflows.md3.0 KB
- 脚本scripts/hitl-loop.template.sh1.3 KB
03 SKILL.md 正文
Deployment
This skill covers deploying Expo applications across all platforms using EAS (Expo Application Services).
References
Consult these resources as needed:
- ./references/workflows.md -- CI/CD workflows for automated deployments and PR previews
- ./references/testflight.md -- Submitting iOS builds to TestFlight for beta testing
- ./references/app-store-metadata.md -- Managing App Store metadata and ASO optimization
- ./references/play-store.md -- Submitting Android builds to Google Play Store
- ./references/ios-app-store.md -- iOS App Store submission and review process
Quick Start
Install EAS CLI
npm install -g eas-cli
eas login
Initialize EAS
npx eas-cli@latest init
This creates eas.json with build profiles.
Build Commands
Production Builds
# iOS App Store build
npx eas-cli@latest build -p ios --profile production
# Android Play Store build
npx eas-cli@latest build -p android --profile production
# Both platforms
npx eas-cli@latest build --profile production
Submit to Stores
# iOS: Build and submit to App Store Connect
npx eas-cli@latest build -p ios --profile production --submit
# Android: Build and submit to Play Store
npx eas-cli@latest build -p android --profile production --submit
# Shortcut for iOS TestFlight
npx testflight
Web Deployment
Deploy web apps using EAS Hosting:
# Deploy to production
npx expo export -p web
npx eas-cli@latest deploy --prod
# Deploy PR preview
npx eas-cli@latest deploy
EAS Configuration
Standard eas.json for production deployments:
{
"cli": {
"version": ">= 16.0.1",
"appVersionSource": "remote"
},
"build": {
"production": {
"autoIncrement": true,
"ios": {
"resourceClass": "m-medium"
}
},
"development": {
"developmentClient": true,
"distribution": "internal"
}
},
"submit": {
"production": {
"ios": {
"appleId": "your@email.com",
"ascAppId": "1234567890"
},
"android": {
"serviceAccountKeyPath": "./google-service-account.json",
"track": "internal"
}
}
}
}
Platform-Specific Guides
iOS
- Use
npx testflightfor quick TestFlight submissions - Configure Apple credentials via
eas credentials - See ./reference/testflight.md for credential setup
- See ./reference/ios-app-store.md for App Store submission
Android
- Set up Google Play Console service account
- Configure tracks: internal → closed → open → production
- See ./reference/play-store.md for detailed setup
Web
- EAS Hosting provides preview URLs for PRs
- Production deploys to your custom domain
- See ./reference/workflows.md for CI/CD automation
Automated Deployments
Use EAS Workflows for CI/CD:
# .eas/workflows/release.yml
name: Release
on:
push:
branches: [main]
jobs:
build-ios:
type: build
params:
platform: ios
profile: production
submit-ios:
type: submit
needs: [build-ios]
params:
platform: ios
profile: production
See ./reference/workflows.md for more workflow examples.
Version Management
EAS manages version numbers automatically with appVersionSource: "remote":
# Check current versions
eas build:version:get
# Manually set version
eas build:version:set -p ios --build-number 42
Monitoring
# List recent builds
eas build:list
# Check build status
eas build:view
# View submission status
eas submit:list
04 同仓库更多 Skills
Claude 技能规范校验
validate-skills
依据 agentskills.io 规范和 Claude Code 最佳实践校验本仓库中的技能。通过 /validate-skills 命令使用。
Expo DOM 组件跨端迁移
use-dom
使用 Expo DOM 组件在原生平台的 webview 中运行 Web 代码,并在 Web 端按原样运行。用于以增量方式将 Web 代码迁移到原生。
React Native 版本升级
upgrading-react-native
React Native 升级工作流,涵盖更新的模板、依赖和常见陷阱。用于将 React Native 应用迁移到更新的版本。
upgrading-expo
Guidelines for upgrading Expo SDK versions and fixing dependency issues
React Native 性能优化
react-native-best-practices
提供 React Native 性能优化指南,涵盖 FPS、TTI、bundle 体积、内存泄漏、重复渲染和动画。适用于涉及 Hermes 优化、JS 线程阻塞、bridge 开销、FlashList、原生模块或调试卡顿与掉帧的任务。
网络请求与数据获取
native-data-fetching
用于实现或调试任何网络请求、API 调用或数据获取。涵盖 fetch API、axios、React Query、SWR、错误处理、缓存策略、离线支持。