When we release fixes and new features we recommend you upgrade your Trigger.dev packages.
dev
and deploy
commands:
Find your workflow file
.githubs/workflows
folder you can find your workflow yml files. You may have a prod
and staging one.Update the version for the run command
run
command. It will run the trigger.dev deploy CLI command. Make
sure to update this version to the latest version (e.g. npx trigger.dev@3.0.0 deploy
).npx
, pnpm dlx
or yarn dlx
you can add the Trigger.dev CLI as a dev dependency to your package.json file.
For example:
@trigger.dev/sdk
package.
Once you have added the trigger.dev
package to your devDependencies
, you can use npm exec trigger.dev
, pnpm exec trigger.dev
, or yarn exec trigger.dev
to run the CLI.
But we recommend adding your dev and deploy commands to the scripts
section of your package.json
file:
npm run dev:trigger
and npm run deploy:trigger
to run the CLI.