Skip to main content
Glama
get-started.md4.57 kB
--- title: Get started with EAS Workflows sidebar_title: Get started description: Learn how to use EAS Workflows to automate your React Native CI/CD development and release processes. hasVideoLink: true searchRank: 10 --- EAS Workflows allow you to automate your development and release processes. It's a React Native CI/CD service that can build and submit your biweekly app store releases, create preview updates for every commit, and more. <br /> <br /> EAS Workflows are designed to help you and your team release your app. It comes preconfigured with pre-packaged job types that can build, submit, update, run Maestro tests, and more. All job types run on EAS, so you'll only have to manage one set of YAML files, and all the artifacts from your job runs will appear on [expo.dev](https://expo.dev/). Other CI services, like CircleCI and GitHub Actions, are more generalized and have the ability to do more than workflows. However, those services also require you to understand more about the implementation of each job. While that is necessary in some cases, workflows help you get common tasks done quickly by pre-packaging the most essential types of jobs for app developers. In addition, workflows are designed to provide you with the fastest possible cloud machine for the task at hand, and we're constantly updating those for you. EAS Workflows are great for operations related to your Expo apps, while other CI/CD services will provide a better experience for other types of workflows. Share the following slide in your next team meeting to discuss what EAS Workflows are and how they can help your team: ## Get started <Requirement number={1} title="Sign up for an Expo account"> You'll need to [sign up](https://expo.dev/signup) for an Expo account. </Requirement> <Requirement number={2} title="Create a project"> You'll need to create a project with the following command: </Requirement> <Requirement number={3} title="Sync the project with EAS"> You'll need to sync the project with EAS with the following command. This will create an EAS project and link it to your local project: </Requirement> <Requirement number={4} title="Add eas.json"> You'll need to add an `eas.json` file to the root of your project if it doesn't already exist: <Terminal cmd={['$ touch eas.json && echo "{}" > eas.json']} /> </Requirement> Create a directory named **.eas/workflows** at the root of your project with a YAML file inside of it. For example: **.eas/workflows/create-production-builds.yml**. Add the following YAML to the `create-production-builds.yml` file: ```yaml .eas/workflows/create-production-builds.yml name: Create Production Builds jobs: build_android: type: build # This job type creates a production build for Android params: platform: android build_ios: type: build # This job type creates a production build for iOS params: platform: ios ``` The workflow above will create a production build for Android and iOS in parallel. To run this workflow successfully, you'll need to [set up and build your project using EAS CLI](/build/setup/) first. Finally, run the workflow with the following command: Once you do, you can see your workflow running on your project's [workflows page](https://expo.dev/accounts/[account]/projects/[projectName]/workflows). ## More ### Automate workflows with GitHub events You can trigger a workflow by pushing a commit to your GitHub repository. You can link a GitHub repo to your EAS project with the following steps: - Navigate to your project's [GitHub settings](https://expo.dev/accounts/%5Baccount%5D/projects/%5BprojectName%5D/github). - Follow the UI to install the GitHub app. - Select the GitHub repository that matches the Expo project and connect it. Then, add the [`on` trigger](/eas/workflows/syntax/#on) to your workflow file. For example, if you want to trigger the workflow when a commit is pushed to the `main` branch, you can add the following: ```yaml .eas/workflows/create-production-builds.yml name: Create Production Builds # @info # on: push: branches: ['main'] # @end # jobs: build_android: type: build params: platform: android build_ios: type: build ``` ### VS Code extension Download the [Expo Tools VS Code extension](https://marketplace.visualstudio.com/items?itemName=expo.vscode-expo-tools) to get descriptions and autocompletions for your workflow files. > Got feedback or feature requests? Send us an email at workflows@expo.dev.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jaksm/expo-docs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server