From 50f1981304b1a2975bb74970d06a99718fc817a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=ED=98=84=EC=A7=80?= Date: Mon, 25 Dec 2023 03:20:55 +0900 Subject: [PATCH] Fix: warning error because process.env.CI=true --- .github/workflows/firebase-hosting-merge.yml | 2 +- .github/workflows/firebase-hosting-pull-request.yml | 3 ++- src/components/About/RenderContact.tsx | 2 +- src/firebase.tsx | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 49825e1..fdae8fc 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v3 - run : npm ci - - run: npm run build + - run: CI='false' npm run build - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}' diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 7610d94..9a4fb92 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -9,7 +9,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: npm run build + - run: npm ci + - run: CI='false' npm run build - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}' diff --git a/src/components/About/RenderContact.tsx b/src/components/About/RenderContact.tsx index d082e1d..6444484 100644 --- a/src/components/About/RenderContact.tsx +++ b/src/components/About/RenderContact.tsx @@ -1,4 +1,4 @@ -import {Info, InfoContentDiv, InfoTitle, InfoContent, InfoContentDetail, InfoContentElementDiv} from "./CommonInfo"; +import {Info, InfoContentDiv, InfoTitle } from "./CommonInfo"; import styled from "styled-components"; const ContactInfoDiv=styled.div` diff --git a/src/firebase.tsx b/src/firebase.tsx index 043dcc8..38f1812 100644 --- a/src/firebase.tsx +++ b/src/firebase.tsx @@ -1,6 +1,6 @@ // Import the functions you need from the SDKs you need import { initializeApp } from "firebase/app"; -import { getFirestore, doc, collection, getDocs, addDoc } from "firebase/firestore"; +import { getFirestore, collection, getDocs, addDoc } from "firebase/firestore"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries