diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..449afb6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: build + +on: + push: + branches: + - main + - dev + pull_request: + branches: + - main + - dev + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js 20.x + uses: actions/setup-node@v2 + with: + node-version: 20.x + + - name: Install pnpm + uses: pnpm/action-setup@v3 + with: + version: 8 + run_install: false + + - name: Install dependencies + run: pnpm install + + - name: Run build + run: pnpm run build diff --git a/src/apis/auth/createGuestUserApi.ts b/src/apis/auth/createGuestUserApi.ts deleted file mode 100644 index b06c44d..0000000 --- a/src/apis/auth/createGuestUserApi.ts +++ /dev/null @@ -1,6 +0,0 @@ -import apiClient from '@/apis'; -import type { GuestUser } from '@/types/user'; - -export default async function createGuestUserApi(user: GuestUser) { - return (await apiClient.post(`/onboarding/members`, user)).data; -} diff --git a/src/apis/auth/index.ts b/src/apis/auth/index.ts index cbb83a5..a2739f5 100644 --- a/src/apis/auth/index.ts +++ b/src/apis/auth/index.ts @@ -1,2 +1 @@ -export { default as createGuestUserApi } from './createGuestUserApi'; export { default as verifyStudentApi } from './verifyStudentApi'; diff --git a/src/apis/member/createBasicInfoApi.ts b/src/apis/member/createBasicInfoApi.ts index d4e18c5..434dbe8 100644 --- a/src/apis/member/createBasicInfoApi.ts +++ b/src/apis/member/createBasicInfoApi.ts @@ -1,9 +1,11 @@ import apiClient from '@/apis'; -import { MemberBasicInfoType } from './memberType'; +import { UserBasicInfo } from '@/types/user'; const createBasicInfoApi = { - BASIC_INFO: async (payload: MemberBasicInfoType) => { + BASIC_INFO: async ( + payload: Omit + ) => { const response = await apiClient.post( '/onboarding/members/me/basic-info', payload diff --git a/src/assets/Onboarding.tsx b/src/assets/Onboarding.tsx index a215a96..2c5c2ec 100644 --- a/src/assets/Onboarding.tsx +++ b/src/assets/Onboarding.tsx @@ -181,14 +181,14 @@ export const OnboardingLogo2 = () => { { fill="#FBBC04" /> { diff --git a/src/assets/OnboardingArrow.tsx b/src/assets/OnboardingArrow.tsx index c758f22..5684a2f 100644 --- a/src/assets/OnboardingArrow.tsx +++ b/src/assets/OnboardingArrow.tsx @@ -3,7 +3,7 @@ export const OnboardingArrow = () => { <>