Skip to content

Commit 31d106f

Browse files
committed
conditional statement for grunt cli
1 parent 3b79635 commit 31d106f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/NMSReportingSuite-deployment.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ jobs:
2323
- name: Build with Maven
2424
run: mvn clean install -f NMSReportingSuite/pom.xml
2525

26-
# Step 4: Install Grunt CLI
26+
# Step 4: Install Grunt CLI only if not already installed
2727
- name: Install Grunt CLI
2828
run: |
29-
npm install -g grunt-cli
29+
if ! command -v grunt &> /dev/null; then
30+
npm install -g grunt-cli
31+
else
32+
echo "Grunt CLI is already installed"
33+
fi
3034
3135
# Step 5: Build FrontEnd files
3236
- name: Install Frontend Dependencies and Build with Grunt

0 commit comments

Comments
 (0)