Skip to content

Commit be5f33e

Browse files
authored
Merge pull request #782 from trycompai/claudio/comp-176-clean-up-github-workflow-scripts-2
[dev] [claudfuen] claudio/comp-176-clean-up-github-workflow-scripts-2
2 parents a59ffcb + 0cd4625 commit be5f33e

File tree

6 files changed

+20
-11
lines changed

6 files changed

+20
-11
lines changed

.github/actions/bun-install/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323
node-version: ${{ inputs.node_version }}
2424

2525
- name: Install Bun
26-
uses: oven-sh/setup-bun@v1
26+
uses: oven-sh/setup-bun@v2
2727
with:
2828
bun-version: latest
2929

.github/workflows/auto-pr-to-main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
permissions:
1818
pull-requests: write
1919
contents: write
20+
issues: write
2021
steps:
2122
- name: Add permissions
2223
run: git config --global --add safe.directory /github/workspace

.github/workflows/auto-pr-to-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
permissions:
1010
pull-requests: write
1111
contents: write
12+
issues: write
1213
steps:
1314
- name: Add permissions
1415
run: git config --global --add safe.directory /github/workspace

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ jobs:
3030
with:
3131
node-version: '20' # Or your preferred Node.js version
3232

33-
# - name: Setup Bun
34-
# uses: oven-sh/setup-bun@v1
35-
# # with:
36-
# # bun-version: latest # Optional: specify a bun version
33+
- name: Setup Bun
34+
uses: oven-sh/setup-bun@v2
35+
with:
36+
bun-version: latest # Optional: specify a bun version
3737

38-
# - name: Install dependencies
39-
# run: bun install --frozen-lockfile # Use --frozen-lockfile in CI
38+
- name: Install dependencies
39+
run: bun install --frozen-lockfile # Use --frozen-lockfile in CI
4040

4141
- name: Release
4242
env:

.github/workflows/trigger-tasks-deploy-main.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,16 @@ jobs:
1212
uses: actions/setup-node@v4
1313
with:
1414
node-version: "22.x" # Updated to match Node.js w/ Vercel
15+
- name: Setup Bun
16+
uses: oven-sh/setup-bun@v2
17+
- name: Clear cache
18+
run: rm -rf node_modules .bun
19+
- name: Install dependencies
20+
run: |
21+
bun install --frozen-lockfile
1522
- name: Generate Prisma client
1623
working-directory: ./packages/db
17-
run: npx prisma generate
24+
run: bunx prisma generate
1825
- name: 🚀 Deploy Trigger.dev
1926
working-directory: ./apps/app
2027
env:
@@ -23,4 +30,4 @@ jobs:
2330
VERCEL_ACCESS_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }}
2431
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
2532
VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }}
26-
run: npx trigger.dev@latest deploy --env staging
33+
run: bunx trigger.dev@latest deploy --env staging

.github/workflows/trigger-tasks-deploy-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
node-version: "20.x"
1818

1919
- name: Setup Bun
20-
uses: oven-sh/setup-bun@v1
20+
uses: oven-sh/setup-bun@v2
2121

2222
- name: Install dependencies
23-
run: bun install
23+
run: bun install --frozen-lockfile
2424

2525
- name: Generate Prisma client
2626
working-directory: ./packages/db

0 commit comments

Comments
 (0)