Skip to content

Update main_vrv-frontend.yml #7

Update main_vrv-frontend.yml

Update main_vrv-frontend.yml #7

name: Deploy React App in Development Mode
on:
push:
branches:
- main
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to Azure using OIDC
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Set up Node.js version
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install dependencies
working-directory: ./client
run: npm install
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v3
with:
app-name: 'vrv-frontend'
slot-name: 'Production'
package: './client'