Change the npm tag from "latest" to "beta" in docs/cli/onboarding (#974)

* The v3 init command defaults to the “@v3” tag

* Change it to beta

* Updated the docs and in-app docs

* Updated GitHub action
This commit is contained in:
Matt Aitken
2024-03-27 13:39:53 +00:00
committed by GitHub
parent f11c0f991b
commit 3a35d60091
6 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ export function TriggerDevStep({ extra }: { extra?: string }) {
}
// Trigger.dev version 3 setup commands
const v3PackageTag = "v3";
const v3PackageTag = "beta";
export function InitCommandV3() {
const project = useProject();
+3 -3
View File
@@ -8,15 +8,15 @@ You run the command like this:
<CodeGroup>
```bash npm
npx trigger.dev@v3 deploy
npx trigger.dev@beta deploy
```
```bash pnpm
pnpm dlx trigger.dev@v3 deploy
pnpm dlx trigger.dev@beta deploy
```
```bash yarn
yarn dlx trigger.dev@v3 deploy
yarn dlx trigger.dev@beta deploy
```
</CodeGroup>
+6 -6
View File
@@ -8,15 +8,15 @@ This runs a server on your machine that can execute Trigger.dev tasks:
<CodeGroup>
```bash npm
npx trigger.dev@v3 dev
npx trigger.dev@beta dev
```
```bash pnpm
pnpm dlx trigger.dev@v3 dev
pnpm dlx trigger.dev@beta dev
```
```bash yarn
yarn dlx trigger.dev@v3 dev
yarn dlx trigger.dev@beta dev
```
</CodeGroup>
@@ -34,15 +34,15 @@ You can use the `--debugger` flag to run the server in debug mode. This will all
<CodeGroup>
```bash npm
npx trigger.dev@v3 dev --debugger
npx trigger.dev@beta dev --debugger
```
```bash pnpm
pnpm dlx trigger.dev@v3 dev --debugger
pnpm dlx trigger.dev@beta dev --debugger
```
```bash yarn
yarn dlx trigger.dev@v3 dev --debugger
yarn dlx trigger.dev@beta dev --debugger
```
</CodeGroup>
+4 -4
View File
@@ -22,16 +22,16 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: "18.x"
node-version: "20.x"
- name: 🚀 Deploy Trigger.dev
env:
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
run: |
npx trigger.dev@v3 deploy
npx trigger.dev@beta deploy
```
If you already have a GitHub action file, you can just add the final step "🚀 Deploy Trigger.dev" to your existing file.
+6 -6
View File
@@ -43,15 +43,15 @@ Run this command in the root of your project to get started:
<CodeGroup>
```bash npm
npx trigger.dev@v3 init
npx trigger.dev@beta init
```
```bash pnpm
pnpm dlx trigger.dev@v3 init
pnpm dlx trigger.dev@beta init
```
```bash yarn
yarn dlx trigger.dev@v3 init
yarn dlx trigger.dev@beta init
```
</CodeGroup>
@@ -72,15 +72,15 @@ The CLI `dev` command runs a server for your tasks. It will watches for changes
<CodeGroup>
```bash npm
npx trigger.dev@v3 dev
npx trigger.dev@beta dev
```
```bash pnpm
pnpm dlx trigger.dev@v3 dev
pnpm dlx trigger.dev@beta dev
```
```bash yarn
yarn dlx trigger.dev@v3 dev
yarn dlx trigger.dev@beta dev
```
</CodeGroup>
+2 -2
View File
@@ -36,7 +36,7 @@ import { login } from "./login";
const InitCommandOptions = CommonCommandOptions.extend({
projectRef: z.string().optional(),
overrideConfig: z.boolean().default(false),
tag: z.string().default("latest"),
tag: z.string().default("beta"),
skipPackageInstall: z.boolean().default(false),
});
@@ -55,7 +55,7 @@ export function configureInitCommand(program: Command) {
.option(
"-t, --tag <package tag>",
"The version of the @trigger.dev/sdk package to install",
"latest"
"beta"
)
.option("--skip-package-install", "Skip installing the @trigger.dev/sdk package")
.option("--override-config", "Override the existing config file if it exists")