6270abaab8
* Make the tooltip text color grey so it’s readable again the primary color * Setup and styling for the Guides section * Better Guides icon * Improved the prerequisites * WIP Nextjs guide and new folder structures * Copy updates * Useful next steps is now a snippet * Better icons for the next steps section * Renamed the “prerequisites” snippet * Node.js guide * Added a “Creating a project” guide * New snippet for prerequisites * New Remix guide * Added Remix to the side bar * Tweaked icons for creating a project page * Added the hello world step to the onboarding steps * Better “useful next steps” snippet card links * Moved prerequisites * Fixing links to images * Moved v2 migration page to guides * Removed dead link * Attempt fix for redirect * Fixed redirects * Getting started section includes link to roadmap * Removed icon from side menu * Deleted all v2 pages (excluding updating mint.json) * Removed v2 pages, redirects and versions from mint.json * Deleted v2 snippets * Deleted un-used pages * Set of more useful coming soon snippets * All snippets use the updated format * updated folder “v3/“ with “/pages” * Moved all main docs files to the route and updated the redirect * Fixed URLs in the mdx pages to the new route path * URL goes to the proper pricing page * Better delayed runs image * Attempt fix for self hosting page not redirecting
81 lines
2.2 KiB
Plaintext
81 lines
2.2 KiB
Plaintext
---
|
|
title: "How to upgrade the Trigger.dev packages"
|
|
sidebarTitle: "Upgrading packages"
|
|
description: "When we release fixes and new features we recommend you upgrade your Trigger.dev packages."
|
|
---
|
|
|
|
## Update command
|
|
|
|
Run this command in your project:
|
|
|
|
```sh
|
|
npx trigger.dev@beta update
|
|
```
|
|
|
|
This will update all of the Trigger.dev packages in your project to the latest version.
|
|
|
|
## Running the CLI locally
|
|
|
|
When you run the CLI locally use the latest version for the `dev` and `deploy` commands:
|
|
|
|
```sh
|
|
npx trigger.dev@beta dev
|
|
```
|
|
|
|
```sh
|
|
npx trigger.dev@beta deploy
|
|
```
|
|
|
|
These commands will also give you the option to upgrade if you are behind on versions.
|
|
|
|
## Deploying with GitHub Actions
|
|
|
|
You can deploy using [GitHub Actions](/github-actions). We recommend that you lock your version in the workflow file so make sure to upgrade.
|
|
|
|
<Warning>
|
|
The deploy step will fail if version mismatches are detected. It's important that you update the
|
|
version using the steps below.
|
|
</Warning>
|
|
|
|
<Steps>
|
|
<Step title="Find your workflow file">
|
|
In your `.githubs/workflows` folder you can find your workflow yml files. You may have a prod
|
|
and staging one.
|
|
</Step>
|
|
<Step title="Update the version for the run command">
|
|
In the steps you'll see a `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-beta.48 deploy`).
|
|
</Step>
|
|
</Steps>
|
|
|
|
## package.json dev dependency
|
|
|
|
Instead of using `npx`, `pnpm dlx` or `yarn dlx` you can add the Trigger.dev CLI as a dev dependency to your package.json file.
|
|
|
|
For example:
|
|
|
|
```json
|
|
{
|
|
"devDependencies": {
|
|
"trigger.dev": "3.0.0-beta.48"
|
|
}
|
|
}
|
|
```
|
|
|
|
If you've done this make sure to update the version to match the `@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:
|
|
|
|
```json
|
|
{
|
|
"scripts": {
|
|
"dev:trigger": "trigger.dev dev",
|
|
"deploy:trigger": "trigger.dev deploy"
|
|
}
|
|
}
|
|
```
|
|
|
|
Then you can run `npm run dev:trigger` and `npm run deploy:trigger` to run the CLI.
|