trigger upgrade and deployment update

This commit is contained in:
dal 2025-07-07 08:07:46 -06:00
parent 42268375f2
commit 482009c01f
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
5 changed files with 16340 additions and 9305 deletions

View File

@ -1,47 +0,0 @@
name: Deploy Trigger.dev Tasks - Staging
on:
push:
branches:
- staging
jobs:
deploy-staging:
runs-on: blacksmith-8vcpu-ubuntu-2204
environment: staging
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 9.15.0
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: 🚀 Deploy to Staging
env:
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
run: |
cd apps/trigger
pnpm dlx trigger.dev@v4-beta deploy --env staging

View File

@ -1,14 +1,13 @@
name: Deploy Trigger.dev Tasks - Production
name: Deploy Trigger.dev Tasks
on:
push:
branches:
- main
branches: [main, staging]
jobs:
deploy-production:
deploy:
runs-on: blacksmith-8vcpu-ubuntu-2204
environment: production
environment: ${{ github.ref_name }}
steps:
- name: Checkout code
uses: actions/checkout@v4
@ -39,9 +38,9 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: 🚀 Deploy to Production
- name: 🚀 Deploy to ${{ github.ref_name == 'main' && 'Production' || 'Staging' }}
env:
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
run: |
cd apps/trigger
pnpm dlx trigger.dev@v4-beta deploy --env production
pnpm dlx trigger.dev@v4-beta.22 deploy --env ${{ github.ref_name == 'main' && 'production' || 'staging' }}

View File

@ -24,13 +24,13 @@
"@buster/typescript-config": "workspace:*",
"@buster/vitest-config": "workspace:*",
"@mastra/core": "catalog:",
"@trigger.dev/sdk": "4.0.0-v4-beta.21",
"@trigger.dev/sdk": "4.0.0-v4-beta.22",
"ai": "catalog:",
"braintrust": "^0.0.206",
"vitest": "catalog:",
"zod": "catalog:"
},
"devDependencies": {
"@trigger.dev/build": "4.0.0-v4-beta.21"
"@trigger.dev/build": "4.0.0-v4-beta.22"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -11,8 +11,8 @@ packages:
catalog:
"@supabase/supabase-js": "^2.50.0"
"@trigger.dev/build": "^4.0.0-v4-beta.21"
"@trigger.dev/sdk": "^4.0.0-v4-beta.21"
"@trigger.dev/build": "^4.0.0-v4-beta.22"
"@trigger.dev/sdk": "^4.0.0-v4-beta.22"
ai: "^4.0.0"
axios: "^1.10.0"
drizzle-orm: "^0.44.2"