Skip to content

Commit c4571d9

Browse files
committed
chore: ci build test
1 parent fbf1a69 commit c4571d9

7 files changed

Lines changed: 39 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: "22"
19+
cache: "pnpm"
20+
21+
- name: Install pnpm
22+
run: npm install -g pnpm
23+
24+
- name: Install dependencies
25+
run: pnpm install --frozen-lockfile
26+
27+
- name: Build project
28+
run: |
29+
pnpm run ci:build

apps/admin/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/dev/types/routes.d.ts";
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/admin/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"dev": "next dev --turbopack --port 5555",
77
"build": "next build",
8+
"ci:build": "next build --experimental-build-mode compile",
89
"start": "next start",
910
"lint": "next lint"
1011
},

apps/web/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/dev/types/routes.d.ts";
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "next dev --turbopack --port 5000",
88
"build": "next build",
9+
"ci:build": "next build --experimental-build-mode compile",
910
"start": "next start",
1011
"lint": "next lint",
1112
"lint:fix": "next lint --fix",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"scripts": {
66
"build": "turbo build",
7+
"ci:build": "turbo ci:build",
78
"dev": "turbo dev",
89
"lint": "turbo lint",
910
"format": "prettier --write \"**/*.{ts,tsx,md}\""

turbo.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
"TRUSTED_ORIGINS"
1414
]
1515
},
16+
"ci:build": {
17+
"dependsOn": ["^ci:build"],
18+
"inputs": ["$TURBO_DEFAULT$", ".env*"],
19+
"outputs": [".next/**", "!.next/cache/**"]
20+
},
1621
"lint": {
1722
"dependsOn": ["^lint"]
1823
},

0 commit comments

Comments
 (0)