Skip to content

Commit

Permalink
Merge pull request #416 from Azure/shilpirachna1/fixworkslows-rel
Browse files Browse the repository at this point in the history
Tasks for npm install and build made conditional based on node_modules
  • Loading branch information
ShilpiRachna1 committed Apr 5, 2024
2 parents 4bca689 + de442bc commit fb998c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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
10 changes: 7 additions & 3 deletions .github/workflows/pr_check_windows_container_pubprofile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- releases/*
paths-ignore:
- '**.md'
pull_request_target:
pull_request:
branches:
- master
- 'releases/*'
Expand Down Expand Up @@ -84,8 +84,12 @@ 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/
with:
Expand Down

0 comments on commit fb998c9

Please sign in to comment.