From a8b7b350a681c1aef0202b4969414363822f0baf Mon Sep 17 00:00:00 2001 From: racgoo Date: Mon, 19 Aug 2024 12:21:38 +0900 Subject: [PATCH] =?UTF-8?q?feat(env):=20admin=20.env=20deploy=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 6 +++++- packages/admin/src/services/api/types/apiType.ts | 5 ++--- 2 files changed, 7 insertions(+), 4 deletions(-) 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; };