Skip to content

Commit

Permalink
conditional statement for grunt cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandar-Beehyv committed Jan 8, 2025
1 parent 3b79635 commit 31d106f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/NMSReportingSuite-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31d106f

Please sign in to comment.