GitHub integration

Automatically deploy your tasks on every push to your GitHub repository.

Saadi Myftija

Saadi Myftija

Software Engineer, Trigger.dev

Image for GitHub integration

You can now connect your GitHub repository to automatically deploy your tasks on code changes. This removes the need to manually run the trigger.dev deploy command or set up custom CI/CD workflows.

Key features

  • Production and staging tracking branches: Every push on a tracking branch creates a deployment in the corresponding environment.
  • Preview branches for PRs: Preview branches are created automatically and archived when the PR is merged or closed.
  • Build-time environment variables: Expose environment variables available during the build process.
  • Private npm registries: Supported via the TRIGGER_BUILD_NPM_RC environment variable.

If you're using a monorepo setup, simply set the path to your trigger.config.ts file in the build settings and we'll take care of the rest. Optionally, you can override the installation command and also specify a pre-build command to be run after the installation.

Getting started

Read the GitHub integration docs to learn more or head to your project's settings to connect a repository.

Ready to start building?

Build and deploy your first task in 3 minutes.

Get started now