Update main.yml #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deployment | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js version | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: build app | |
run: | | |
npm install | |
npm cache clean --force #*try clearing out npm cache* | |
npm install --legacy-peer-deps #*run the command with the --legacy-peer-deps option* | |
npm install --force #* run the command with the --force* | |
npm build | |
- name: Deploy WebApp to Static Web App | |
uses: Azure/static-web-apps-deploy@v1 | |
with: | |
azure_static_web_apps_api_token: ${{ secrets.MANAGE_DEPLOYMENT_TOKEN }} | |
action: 'upload' | |
#app_location: 'auth-app' | |
#api_location: '' | |
output_location: './dist' |