Skip to content

Commit eecb27c

Browse files
authored
fix: deploy the dashboard agent one environment at a time (#4133)
The dashboard agent deploy runs a matrix leg per environment (staging, prod). Running them in parallel deployed the same Trigger.dev project twice at once, and one leg failed to create the background worker while the other succeeded. `max-parallel: 1` runs the legs sequentially so a deploy never races itself. Also aligns the workflow's Node version to the repo standard (`22.23.1`, per `.nvmrc`). Verified: re-running the staging leg on its own (no parallel prod) deployed cleanly.
1 parent ea9d6f7 commit eecb27c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/dashboard-agent-deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
runs-on: ubuntu-latest
2424
strategy:
2525
fail-fast: false
26+
# One environment at a time: parallel deploys of the same project race.
27+
max-parallel: 1
2628
matrix:
2729
environment: [staging, prod]
2830
# Per-environment reviewer gate + source of the scoped deploy PAT.
@@ -49,7 +51,7 @@ jobs:
4951
- name: Setup node
5052
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
5153
with:
52-
node-version: 20.20.2
54+
node-version: 22.23.1
5355
cache: "pnpm"
5456

5557
- name: Install + build the CLI and the agent's deps

0 commit comments

Comments
 (0)