From 4b1b7f97ee09c0db50069a72216234509c0549e2 Mon Sep 17 00:00:00 2001 From: Eddy Chen <89349085+ecxyzzy@users.noreply.github.com> Date: Thu, 1 Feb 2024 22:32:35 -0800 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=91=B7=20re-enable=20services=20dep?= =?UTF-8?q?loy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-prod.yml | 48 +++++++++++++++---------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 7bf05316..7a4e73ca 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -80,27 +80,27 @@ jobs: - name: Deploy documentation CloudFormation stack run: pnpm --filter="@tools/cdk" docs deploy -# deploy-services: -# name: Deploy services CloudFormation stack and production environment -# -# runs-on: ubuntu-latest -# -# environment: -# name: production-services -# -# steps: -# - name: Checkout repository -# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 -# -# - name: Setup Node.js and pnpm -# uses: ./.github/actions/setup-node-and-pnpm -# -# - name: Install dependencies -# # Ensure NODE_ENV != production so pnpm will install devDependencies!!! -# run: NODE_ENV=development pnpm install --frozen-lockfile -# -# - name: Build services -# run: pnpm build --filter="@services/*" -# -# - name: Deploy stack -# run: pnpm --filter="@tools/cdk" services deploy + deploy-services: + name: Deploy services CloudFormation stack and production environment + + runs-on: ubuntu-latest + + environment: + name: production-services + + steps: + - name: Checkout repository + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + + - name: Setup Node.js and pnpm + uses: ./.github/actions/setup-node-and-pnpm + + - name: Install dependencies + # Ensure NODE_ENV != production so pnpm will install devDependencies!!! + run: NODE_ENV=development pnpm install --frozen-lockfile + + - name: Build services + run: pnpm build --filter="@services/*" + + - name: Deploy stack + run: pnpm --filter="@tools/cdk" services deploy