From 2c8b080f76e906010960df5a2e305db1b93fdf91 Mon Sep 17 00:00:00 2001 From: BearHumanS Date: Fri, 3 May 2024 02:49:37 +0900 Subject: [PATCH 1/8] =?UTF-8?q?Chore:=20CI/CD=20=EC=9B=8C=ED=81=AC?= =?UTF-8?q?=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EB=B9=8C=EB=93=9C=20npm=EC=97=90?= =?UTF-8?q?=EC=84=9C=20yarn=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7c8555..e1ae220 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,12 +14,12 @@ jobs: node-version: '18' - uses: actions/cache@v2 with: - path: ~/.npm + path: ~/.yarn key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - - run: npm install - - run: npm run lint + - run: yarn install + - run: yarn lint build: name: Build @@ -33,9 +33,9 @@ jobs: node-version: '18' - uses: actions/cache@v2 with: - path: ~/.npm + path: ~/.yarn key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - - run: npm install - - run: CI='false' npm run build + - run: yarn install + - run: CI='false' yarn build From 4cbf5546960c05635f318a6d0a9f64a5fdd0e0dc Mon Sep 17 00:00:00 2001 From: BearHumanS Date: Fri, 3 May 2024 03:31:37 +0900 Subject: [PATCH 2/8] =?UTF-8?q?Fix:=20ci=20=EC=9B=8C=ED=81=AC=ED=94=8C?= =?UTF-8?q?=EB=A1=9C=EC=9A=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1ae220..9351229 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/cache@v2 with: path: ~/.yarn - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.json') }} restore-keys: | ${{ runner.os }}-node- - run: yarn install @@ -34,7 +34,7 @@ jobs: - uses: actions/cache@v2 with: path: ~/.yarn - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.json') }} restore-keys: | ${{ runner.os }}-node- - run: yarn install From ae81f2fde34cfce1e20e332c28bab8acce54400e Mon Sep 17 00:00:00 2001 From: BearHumanS Date: Fri, 3 May 2024 03:56:08 +0900 Subject: [PATCH 3/8] =?UTF-8?q?Fix=20:=20ci=20=EC=9B=8C=ED=81=AC=ED=94=8C?= =?UTF-8?q?=EB=A1=9C=EC=9A=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9351229..f0f41a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/cache@v2 with: path: ~/.yarn - key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.json') }} + key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-node- - run: yarn install @@ -34,7 +34,7 @@ jobs: - uses: actions/cache@v2 with: path: ~/.yarn - key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.json') }} + key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-node- - run: yarn install From 0088ef4478bed758d734b241e0fc19b7f60903c2 Mon Sep 17 00:00:00 2001 From: BearHumanS Date: Fri, 3 May 2024 04:05:41 +0900 Subject: [PATCH 4/8] =?UTF-8?q?Test:=20ci/build=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=EC=A7=84=ED=96=89=20=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 221fcde..b2754f5 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "next dev", "sitemap": "node sitemap.js", - "build": "yarn sitemap && next build", + "build": "yarn sitemap && next build && next export", "start": "next start", "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"", "lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\"" From e38df98b690eb605fcc9205b24727597540b1e6e Mon Sep 17 00:00:00 2001 From: BearHumanS Date: Fri, 3 May 2024 04:18:00 +0900 Subject: [PATCH 5/8] =?UTF-8?q?Test:=20CI=20build=20error=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0f41a7..2d3c706 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,8 @@ jobs: build: name: Build + env: + NEXT_PUBLIC_API_KEY: ${{ secrets.FIREBASE_API_KEY }} runs-on: ubuntu-latest needs: lint From db393b752b22814fd32d51133099f1a6d8042e45 Mon Sep 17 00:00:00 2001 From: BearHumanS Date: Fri, 3 May 2024 12:56:53 +0900 Subject: [PATCH 6/8] =?UTF-8?q?Test:=20CI=20build=20=EC=8B=9C=20=ED=99=98?= =?UTF-8?q?=EA=B2=BD=EB=B3=80=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d3c706..090dda4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,16 @@ jobs: build: name: Build env: - NEXT_PUBLIC_API_KEY: ${{ secrets.FIREBASE_API_KEY }} + NEXT_PUBLIC_API_KEY: '${{ secrets.NEXT_PUBLIC_API_KEY }}' + NEXT_PUBLIC_AUTH_DOMAIN: '${{ secrets.NEXT_PUBLIC_AUTH_DOMAIN }}' + NEXT_PUBLIC_PROJECT_ID: '${{ secrets.NEXT_PUBLIC_PROJECT_ID }}' + NEXT_PUBLIC_STORAGE_BUCKET: '${{ secrets.NEXT_PUBLIC_STORAGE_BUCKET }}' + NEXT_PUBLIC_MESSAGIN_SENDER_ID: '${{ secrets.NEXT_PUBLIC_MESSAGIN_SENDER_ID }}' + NEXT_PUBLIC_APP_ID: '${{ secrets.NEXT_PUBLIC_APP_ID }}' + NEXT_PUBLIC_MEASUREMENT_ID: '${{ secrets.NEXT_PUBLIC_MEASUREMENT_ID }}' + NEXT_PUBLIC_ADMIN_UID_1: '${{ secrets.NEXT_PUBLIC_ADMIN_UID_1 }}' + NEXT_PUBLIC_ADMIN_UID_2: '${{ secrets.NEXT_PUBLIC_ADMIN_UID_2 }}' + NEXT_PUBLIC_ADMIN_UID_3: '${{ secrets.NEXT_PUBLIC_ADMIN_UID_3 }}' runs-on: ubuntu-latest needs: lint From 1ab678cfc5d232425f73424a6edc3219e5ee45af Mon Sep 17 00:00:00 2001 From: BearHumanS Date: Fri, 3 May 2024 13:05:14 +0900 Subject: [PATCH 7/8] =?UTF-8?q?Fix:=20CI=20build=20=EC=8B=9C=20next=20expo?= =?UTF-8?q?rt=20=EC=82=AD=EC=A0=9C=20=ED=9B=84=20=20config=EC=97=90?= =?UTF-8?q?=EC=84=9C=20export=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.mjs | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/next.config.mjs b/next.config.mjs index 67e6851..40d9d47 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -25,6 +25,7 @@ const nextConfig = { }, ], }, + output: 'export', }; export default withPWA(nextConfig); diff --git a/package.json b/package.json index b2754f5..221fcde 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "next dev", "sitemap": "node sitemap.js", - "build": "yarn sitemap && next build && next export", + "build": "yarn sitemap && next build", "start": "next start", "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"", "lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\"" From 658f9a10c858717da0cd15137168381a8d94ba21 Mon Sep 17 00:00:00 2001 From: BearHumanS Date: Fri, 3 May 2024 13:10:04 +0900 Subject: [PATCH 8/8] =?UTF-8?q?Test:=20output=20export=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.mjs | 1 - 1 file changed, 1 deletion(-) diff --git a/next.config.mjs b/next.config.mjs index 40d9d47..67e6851 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -25,7 +25,6 @@ const nextConfig = { }, ], }, - output: 'export', }; export default withPWA(nextConfig);