From b337387c16153f0f5d9da12e7072f3d81318280d Mon Sep 17 00:00:00 2001 From: Emma Tong <53305901+etong11@users.noreply.github.com> Date: Tue, 22 Oct 2024 18:47:12 -0400 Subject: [PATCH] Removing npm install and only installing frontend after setup --- .github/workflows/azure-deploy-f24.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/azure-deploy-f24.yml b/.github/workflows/azure-deploy-f24.yml index 3909e076e0..a7d7e61866 100644 --- a/.github/workflows/azure-deploy-f24.yml +++ b/.github/workflows/azure-deploy-f24.yml @@ -32,18 +32,6 @@ jobs: with: node-version: '20.17.0' - - name: Clone frontend repo as a subdirectory - run: | - git clone https://github.com/CMU-313/nodebb-frontend-f24-team-software-stars.git - - - name: Install NodeBB dependencies - run: | - npm install - - - name: Install frontend repo as a dependency - run: | - npm install ./nodebb-frontend-f24-team-software-stars - - name: Set up NodeBB run: | ./nodebb setup '{"url":"https://nodebb-software-stars.azurewebsites.net:443", @@ -55,6 +43,14 @@ jobs: "redis:host": "${{ secrets.REDIS_HOST }}", "redis:port": "6379", "redis:password": "${{ secrets.REDIS_PASSWORD }}" }' + + - name: Clone frontend repo as a subdirectory + run: | + git clone https://github.com/CMU-313/nodebb-frontend-f24-team-software-stars.git + + - name: Install frontend repo as a dependency + run: | + npm install ./nodebb-frontend-f24-team-software-stars - name: 'Deploy to Azure Web App' id: deploy-to-webapp