fix(trigger): inject project id env var in correctly (#1520)

This commit is contained in:
Vikhyath Mondreti
2025-10-01 17:16:28 -07:00
committed by GitHub
parent 6e63eafb79
commit 35d857ef2e
2 changed files with 5 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ jobs:
cancel-in-progress: false
env:
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
TRIGGER_PROJECT_ID: ${{ secrets.TRIGGER_PROJECT_ID }}
steps:
- name: Checkout code
@@ -32,11 +33,12 @@ jobs:
run: bun install
- name: Deploy to Trigger.dev (Staging)
if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
if: github.ref == 'refs/heads/staging'
working-directory: ./apps/sim
run: npx --yes trigger.dev@4.0.4 deploy -e staging
- name: Deploy to Trigger.dev (Production)
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main'
working-directory: ./apps/sim
run: npx --yes trigger.dev@4.0.4 deploy

View File

@@ -2,7 +2,7 @@ import { defineConfig } from '@trigger.dev/sdk'
import { env } from './lib/env'
export default defineConfig({
project: env.TRIGGER_PROJECT_ID ?? '',
project: env.TRIGGER_PROJECT_ID!,
runtime: 'node',
logLevel: 'log',
maxDuration: 600,