Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
11Ajinkya authored Feb 15, 2024
1 parent b697880 commit d9195b5
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,21 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Node.js version
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install Node.js 16.20.2 using nvm
run: |
nvm install 16.20.2
#- name: Set up Node.js version
#uses: actions/setup-node@v2
#with:
#node-version: '18'

- name: build app
run: |
npm install
npm build
#- name: build app
#run: |
#npm install
#npm build

- name: Deploy WebApp to Static Web App
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE }}
azure_static_web_apps_api_token: ${{ secrets.MANAGE_DEPLOYMENT_TOKEN }}
repo_token: ${{ secrets.MY_GITHUB_TOKEN }}
action: 'upload'
app_location: '/'
api_location: 'api'
Expand Down

0 comments on commit d9195b5

Please sign in to comment.