From 31d106fec145f7136f174faa2a9ffa4cb693b1b9 Mon Sep 17 00:00:00 2001 From: Mandar-Beehyv Date: Wed, 8 Jan 2025 15:03:36 +0530 Subject: [PATCH] conditional statement for grunt cli --- .github/workflows/NMSReportingSuite-deployment.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/NMSReportingSuite-deployment.yaml b/.github/workflows/NMSReportingSuite-deployment.yaml index 084c7852..41568803 100644 --- a/.github/workflows/NMSReportingSuite-deployment.yaml +++ b/.github/workflows/NMSReportingSuite-deployment.yaml @@ -23,10 +23,14 @@ jobs: - name: Build with Maven run: mvn clean install -f NMSReportingSuite/pom.xml - # Step 4: Install Grunt CLI + # Step 4: Install Grunt CLI only if not already installed - name: Install Grunt CLI run: | - npm install -g grunt-cli + if ! command -v grunt &> /dev/null; then + npm install -g grunt-cli + else + echo "Grunt CLI is already installed" + fi # Step 5: Build FrontEnd files - name: Install Frontend Dependencies and Build with Grunt