Skip to content

Commit

Permalink
[BBB-94] ⚙️Build: CI 구축
Browse files Browse the repository at this point in the history
  • Loading branch information
msjang4 committed Jul 2, 2024
1 parent 82287f7 commit 76aefbb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check NextJs build

on:
push:
branches: ['develop']
pull_request:
branches: ['develop']

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
- name: Restore cache
uses: actions/cache@v3
with:
path: |
.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Install dependencies
run: npm ci
- name: Build with Next.js
run: npx --no-install run build
1 change: 1 addition & 0 deletions types/study/register-study.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export function getStudySchema(user: User) {
isbn: z.number({
required_error: '필수입니다.'
})
})
],
{
errorMap: (issue, ctx) => {
Expand Down

0 comments on commit 76aefbb

Please sign in to comment.