File tree Expand file tree Collapse file tree 2 files changed +64
-0
lines changed
Expand file tree Collapse file tree 2 files changed +64
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Install Repo
2+ description : Install the toolchain and dependencies
3+
4+ runs :
5+ using : " composite"
6+
7+ steps :
8+ - name : Setup Node
9+ uses : actions/setup-node@v4
10+ with :
11+ node-version : lts/*
12+
13+ - uses : pnpm/action-setup@v4
14+ with :
15+ run_install : false
16+
17+ - name : Enable corepack
18+ shell : bash
19+ run : corepack enable
20+
21+ - name : Get pnpm store directory
22+ id : pnpm-cache
23+ shell : bash
24+ run : |
25+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
26+
27+ - uses : actions/cache@v3
28+ name : Setup pnpm cache
29+ with :
30+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
31+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
32+ restore-keys : |
33+ ${{ runner.os }}-pnpm-store-
34+
35+ - name : Install dependencies
36+ shell : bash
37+ run : |
38+ pnpm install --recursive
Original file line number Diff line number Diff line change 1+ name : Deploy to Trigger.dev
2+ on :
3+ push :
4+ branches :
5+ - main
6+ paths :
7+ - " apps/generator/**"
8+ pull_request :
9+ branches :
10+ - main
11+ paths :
12+ - " apps/generator/**"
13+
14+ jobs :
15+ deploy :
16+ # Only run deployment on push to main (not on PR)
17+ if : github.event_name == 'push'
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v4
21+
22+ - name : Deploy to Trigger.dev
23+ uses : your-username/trigger-deploy-action@v1
24+ with :
25+ access-token : ${{ secrets.TRIGGER_ACCESS_TOKEN }}
26+ working-directory : " apps/generator"
You can’t perform that action at this time.
0 commit comments