GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing trigger.dev — GitHub integration - Trigger.dev How it worksOnce you connect a GitHub repository to your project, you can configure tracking branches for the production and staging environments. Every push to a tracked branch creates a deployment in the corresponding environment. Preview branch deployments are also supported for pull requests. This eliminates the need to manually run thetrigger.dev deploy command or set up custom CI/CD workflows.
Setup1 Install our GitHub app Go to your project’s settings page and click Install GitHub app.
This will take you to GitHub to authorize the Trigger.dev app for your organization or personal account.2 Connect your repository Select a repository to connect to your project. 3 Configure branch tracking Choose which branches should trigger automatic deployments:
4 Customize build settings (optional) Configure how your project is built:
Branch trackingOur GitHub integration uses branch tracking to determine when and where to deploy your code.
Production and staging branchesWhen you connect a repository, the default branch of your repository will be used as the production tracking branch, by default. When you configure a production or staging branch, every push to that branch will trigger a deployment. Our build server will install the project dependencies, build your project, and deploy it to the corresponding environment. If there are multiple consecutive pushes to a tracked branch, the later deployments will be queued until the previous deployment completes.When you connect a repository, the default branch of your repository will be used as the production tracking branch by default.
You can change this in the git settings of your project. Pull requestsBy default, pull requests will be deployed to preview branch environments, enabling you to test changes before merging. When the pull request is merged or closed, the preview branch is automatically archived. The name of the preview branch matches the branch name of the pull request.Preview branch deployments require the preview environment to be enabled on your project. Learn more about preview branches. Ignored pathsSkip builds for pushes that only touch files your tasks do not depend on, such as docs or another app in a monorepo. Open Integrations in your project settings and add the patterns in the git settings panel below the branch fields, one per line. A push builds unless every file changed by the pushed commits matches a pattern. A newly opened pull request compares every file it changes against its base branch in the same way. Some pushes build regardless of the patterns, such as force pushes or pushes that change 300 or more files. Use Test a path to check which pattern, if any, ignores a given file.paths-ignore in GitHub Actions. ** matches across folders and also matches dotfiles, so **/*.md ignores .github/PULL_REQUEST_TEMPLATE.md. Negation (!), braces ({a,b}), extglob groups like +(...) and [!...] are not supported; use [^...] to exclude characters. You can add up to 100 patterns of up to 256 characters each.
When a build is skipped, no deployment is created and the commit’s Trigger.dev check is marked as skipped, with the matched patterns in its summary. Re-run that check from GitHub to build the commit anyway.
Projects connected to Vercel always build. See production waits for your tasks. Version skew protectionEvery deployment the GitHub integration creates is tagged with the commit SHA it was built from. That is the deploy half of version skew protection — you get it for free. To complete it, give your running application the same value. Unlike the Vercel integration, we have no access to wherever your app is hosted, so this half is yours to set:TRIGGER_AUTOMATIC_SKEW_VERSION_PROTECTION=1 instead and the SDK will find it — see the platform table.
Disconnecting a repositoryYou can disconnect a repository at any time from your project git settings. This will stop automatic deployments triggered from GitHub.Managing repository accessTo add or remove repository access for the Trigger.dev GitHub app, follow the link in theConnect GitHub repository modal:
Alternatively, you can follow these steps on GitHub:
Environment variables at build timeYou can expose environment variables during the build and deployment process by prefixing them withTRIGGER_BUILD_.
In the build server, the TRIGGER_BUILD_ prefix is stripped from the variable name, i.e., TRIGGER_BUILD_MY_TOKEN is exposed as MY_TOKEN.
Build extensions will also have access to these variables.
Build environment variables only apply to deployments in the environment you set them in. Using a private npm registryIf your project uses packages from a private npm registry, you can provide authentication by setting aTRIGGER_BUILD_NPM_RC environment variable.
The value should be the contents of your .npmrc file including any token credentials, encoded to base64.
ExampleExample.npmrc file containing credentials for a private npm registry and a GitHub package registry:
TRIGGER_BUILD_NPM_RC environment variable in your project settings with the encoded value.
The build server will automatically create a .npmrc file in the installation directory based on the content of the TRIGGER_BUILD_NPM_RC environment variable.
This enables the build server to authenticate to your private npm registry.Was this page helpful? ⌘I |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |