Skip to content

Commit

Permalink
npm install and build tasks made conditional (#415)
Browse files Browse the repository at this point in the history
Co-authored-by: Shilpi Rachna <shilpir@microsoft.com>
  • Loading branch information
ShilpiRachna1 and ShilpiR authored Apr 5, 2024
1 parent 1700df8 commit 5c1d76e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pr_check_webapp_dotnet_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,11 @@ jobs:
- name: Installing dependencies and building latest changes
run: |
cd webapps-deploy
npm install
npm run build
if (-NOT(TEST-PATH node_modules))
{
npm install
npm run build
}
- name: Azure authentication
uses: azure/login@v1
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/pr_check_windows_container_pubprofile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ jobs:
- name: Installing dependencies and building latest changes in action
run: |
cd webapps-deploy
npm install
npm run build
if (-NOT(TEST-PATH node_modules))
{
npm install
npm run build
}
- name: 'Deploy to Azure WebApp'
uses: ./webapps-deploy/
Expand Down

0 comments on commit 5c1d76e

Please sign in to comment.