name: Deploy Trigger.dev Tasks - Production on: push: branches: - main jobs: deploy-production: runs-on: blacksmith-8vcpu-ubuntu-2204 environment: production 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 Production env: TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }} run: | cd apps/trigger pnpm dlx trigger.dev@v4-beta deploy --env production