AgentSkillsCN

cicd-workflows

帮助用户理解并编写Expo项目的EAS工作流YAML文件。

SKILL.md
--- frontmatter
name: cicd-workflows
description: Helps understand and write EAS workflow YAML files for Expo projects
version: 1.0.0
license: MIT

EAS Workflows Skill

Help developers write and edit EAS CI/CD workflow YAML files.

Reference Documentation

Fetch these resources before generating workflows:

  1. JSON Schemahttps://api.expo.dev/v2/workflows/schema
  2. Syntax Documentationhttps://raw.githubusercontent.com/expo/expo/refs/heads/main/docs/pages/eas/workflows/syntax.mdx
  3. Pre-packaged Jobshttps://raw.githubusercontent.com/expo/expo/refs/heads/main/docs/pages/eas/workflows/pre-packaged-jobs.mdx

Workflow File Location

Workflows live in .eas/workflows/*.yml (or .yaml).

Top-Level Structure

  • name — Display name for the workflow
  • on — Triggers that start the workflow (at least one required)
  • jobs — Job definitions (required)
  • defaults — Shared defaults for all jobs
  • concurrency — Control parallel workflow runs

Expressions

Use ${{ }} syntax for dynamic values:

  • github.* — GitHub repository and event information
  • inputs.* — Values from workflow_dispatch inputs
  • needs.* — Outputs and status from dependent jobs
  • steps.* — Step outputs within custom jobs

Example Workflow

yaml
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