diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 48687acd..dd73af1f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,5 +1,5 @@ name: React build -on: +on: push: branches: - deploy @@ -22,6 +22,10 @@ jobs: run: | echo "${{ secrets.USER_ENV }}" > packages/user/.env + - name: Create .env in admin package + run: | + echo "${{ secrets.ADMIN_ENV }}" > packages/admin/.env + - name: Build Common run: yarn run build:common diff --git a/packages/admin/src/services/api/types/apiType.ts b/packages/admin/src/services/api/types/apiType.ts index a99749a5..67b9365b 100644 --- a/packages/admin/src/services/api/types/apiType.ts +++ b/packages/admin/src/services/api/types/apiType.ts @@ -36,7 +36,6 @@ export interface QuizWinner { postDate: string; } - export interface PersonalityScore { type: string; value: number; @@ -71,7 +70,7 @@ export interface Payload { }; [API.QUIZ_WINNER]: { [METHOD.GET]: Record; - } + }; [API.QUIZ]: { [METHOD.POST]: Quiz; }; @@ -100,7 +99,7 @@ export interface Response { }; [API.QUIZ_WINNER]: { [METHOD.GET]: QuizWinner[]; - } + }; [API.QUIZ]: { [METHOD.POST]: Quiz; };