From 074b00dd13d1d9e9550aed2cf38e320eb13ebee3 Mon Sep 17 00:00:00 2001 From: Kelvin Luu Date: Thu, 15 Dec 2022 05:27:12 -0800 Subject: [PATCH] Update prod deployment file --- .github/workflows/push-prod.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-prod.yml b/.github/workflows/push-prod.yml index 5831485..684be24 100644 --- a/.github/workflows/push-prod.yml +++ b/.github/workflows/push-prod.yml @@ -27,6 +27,9 @@ jobs: runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: + - uses: actions/checkout@v2 + with: + ref: ${{ inputs.branch_name }} # - uses: actions/cache@v2 # with: # path: ~/.npm @@ -60,7 +63,6 @@ jobs: key: ${{ runner.os }}-frontend-src-prod-${{ hashFiles('./frontend/src/**/*', './frontend/package.json') }} # Build frontend (requires node 12) - - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: "12" @@ -81,7 +83,6 @@ jobs: working-directory: frontend # Build backend (requires node 14) - - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: "14"