Skip to content

Commit b29a7e0

Browse files
authored
Merge pull request #875 from trycompai/main
[comp] Production Deploy
2 parents f46830d + 31b37dd commit b29a7e0

984 files changed

Lines changed: 73907 additions & 64746 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/database-migrations-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
DATABASE_URL: ${{ secrets.DATABASE_URL_DEV }}
1717
run: |
1818
cd packages/db
19-
npx prisma migrate deploy
19+
npx prisma migrate deploy

.github/workflows/database-migrations-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
DATABASE_URL: ${{ secrets.DATABASE_URL_PROD }}
1717
run: |
1818
cd packages/db
19-
npx prisma migrate deploy
19+
npx prisma migrate deploy

.github/workflows/github-releases-to-discord.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ on:
55
jobs:
66
github-releases-to-discord:
77
permissions:
8-
contents: read
8+
contents: read
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v3
1313
- name: Github Releases To Discord
1414
uses: SethCohen/github-releases-to-discord@v1.16.2
1515
with:
16-
webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}
16+
webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Node.js
2929
uses: actions/setup-node@v4
3030
with:
31-
node-version: '20' # Or your preferred Node.js version
31+
node-version: "20" # Or your preferred Node.js version
3232

3333
- name: Setup Bun
3434
uses: oven-sh/setup-bun@v2
@@ -43,4 +43,4 @@ jobs:
4343
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
4444
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Uncomment if publishing to npm
4545
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
46-
run: npx semantic-release
46+
run: npx semantic-release

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
run: rm -rf node_modules .bun
1919
- name: Install dependencies
2020
run: |
21-
bun install --frozen-lockfile
21+
bun install
2222
- name: Generate Prisma client
2323
working-directory: ./packages/db
2424
run: bunx prisma generate

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: oven-sh/setup-bun@v2
2121

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

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

.husky/pre-commit

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
# Check for dependency mismatches
5+
echo "Checking for dependency mismatches..."
6+
bun run deps:check
7+
8+
# If there are mismatches, offer to fix them
9+
if [ $? -ne 0 ]; then
10+
echo "Dependency mismatches found! Run 'bun run deps:fix' to fix them."
11+
exit 1
12+
fi

.husky/pre-push

100644100755
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1+
#!/bin/sh
2+
3+
# Check branch name convention
14
branch_name=$(git symbolic-ref --short HEAD)
25
pattern="^[a-zA-Z-]+/.+$"
36

47
if [[ ! $branch_name =~ $pattern ]]; then
58
echo "Branch name '$branch_name' does not follow the naming convention."
69
echo "Branch names should follow the pattern: category/branch-name (e.g. feature/add-button)"
710
exit 1
8-
fi
11+
fi
12+
13+
echo "Running lint and typecheck before push..."
14+
15+
# Run lint
16+
bun run lint
17+
18+
# Run typecheck
19+
bun run typecheck:ci
20+
21+
echo "✅ All checks passed!"

0 commit comments

Comments
 (0)