From 53b7103d2d1c4bd378449a0cfa54c8cac53c7b07 Mon Sep 17 00:00:00 2001 From: stakbucks Date: Sat, 17 Aug 2024 20:49:28 +0900 Subject: [PATCH] run parallel --- .github/workflows/ci-preview-serial.yaml | 42 +++++++++++++++++++++--- apps/web/src/app/layout.tsx | 4 +-- 2 files changed, 40 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-preview-serial.yaml b/.github/workflows/ci-preview-serial.yaml index 6bd5a33..c10561d 100644 --- a/.github/workflows/ci-preview-serial.yaml +++ b/.github/workflows/ci-preview-serial.yaml @@ -1,8 +1,7 @@ -name: Preview CI - Serial without cache +name: Preview CI - Parellel env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} TURBO_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }} - TURBO_TEAM: ${{ vars.TURBO_TEAM }} NEXT_PUBLIC_SERVER_BASE_URL: ${{secrets.NEXT_PUBLIC_SERVER_BASE_URL }} TEST_ACCESS_TOKEN: ${{secrets.TEST_ACCESS_TOKEN }} TEST_REFRESH_TOKEN: ${{secrets.TEST_REFRESH_TOKEN }} @@ -11,7 +10,7 @@ on: branches-ignore: - main jobs: - CI: + Setup: runs-on: ubuntu-latest steps: # checkout and install pnpm @@ -32,7 +31,7 @@ jobs: # install dependencies - run: npx pnpm i -r - # dotenv + # set .env.local - name: create dotenv run: | touch apps/bottle/.env.local @@ -48,6 +47,24 @@ jobs: # run turbo tasks - run: pnpm run ci + Deploy-Bottle: + runs-on: ubuntu-latest + steps: + # checkout and install pnpm + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v3 + name: Install pnpm + id: pnpm-install + with: + version: 8 + run_install: false + # setup node + - name: Setup Node.js environment + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + - name: Deploy Bottle to Vercel run: | npm install --global vercel@latest @@ -83,6 +100,23 @@ jobs: -d "$DATA" \ ${{ secrets.DISCORD_WEBHOOK_URL }} + Deploy-Web: + runs-on: ubuntu-latest + steps: + # checkout and install pnpm + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v3 + name: Install pnpm + id: pnpm-install + with: + version: 8 + run_install: false + # setup node + - name: Setup Node.js environment + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' - name: Deploy Web to Vercel run: | npm install --global vercel@latest diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx index 944c1f4..79309fe 100644 --- a/apps/web/src/app/layout.tsx +++ b/apps/web/src/app/layout.tsx @@ -4,8 +4,8 @@ import './globals.css'; import '@bottlesteam/ui/styles'; export const metadata: Metadata = { - title: '보틀', - description: '당신의 마음을 전달하세요, 보틀', + title: 'Bottle', + description: '당신의 마음을 전달하세요: 보틀', }; export default function RootLayout({