diff --git a/.github/workflows/next.yml b/.github/workflows/next.yml new file mode 100644 index 0000000..56244c1 --- /dev/null +++ b/.github/workflows/next.yml @@ -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 diff --git a/types/study/register-study.ts b/types/study/register-study.ts index a54d2cb..7314d86 100644 --- a/types/study/register-study.ts +++ b/types/study/register-study.ts @@ -136,6 +136,7 @@ export function getStudySchema(user: User) { isbn: z.number({ required_error: '필수입니다.' }) + }) ], { errorMap: (issue, ctx) => {