You can easily deploy your tasks with GitHub actions and other CI environments.
main
branch and the trigger
directory has changes in it.
Create a new access token
Go to your repository on GitHub.
Add the TRIGGER_ACCESS_TOKEN
TRIGGER_ACCESS_TOKEN
and the value of your access token. @trigger.dev/*
package versions need to be in sync with the trigger.dev
CLI, otherwise there will be errors and unpredictable behavior. Hence, the deploy
command will automatically fail during CI on any version mismatches.
Tip: add the deploy command to your package.json
file to keep versions managed in the same place. For example:
package.json
script, like so:
--version
to any command.
TRIGGER_API_URL
environment variable. You can add it to the GitHub secrets the same way as the access token. This should point at your webapp domain, for example: https://trigger.example.com
--self-hosted
and --push
flags when deploying.--self-hosted
and --push
flags are NOT needed.