Skip to content

Frontend - Build and Deploy #110

Frontend - Build and Deploy

Frontend - Build and Deploy #110

name: Frontend - Lint, Build and Deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js version
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Run ESLint
run: |
cd kabinizer-front-end
npx eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0
build_and_deploy:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- name: Set up Node.js version
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: npm install, build
run: |
cd kabinizer-front-end
npm ci
npm run build
- name: "Deploy to Azure Web App"
uses: azure/webapps-deploy@v2
id: deploy-to-webapp
with:
app-name: "app-kabinizer-client-dev"
slot-name: "Production"
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_C4AAEA8978394A6FB11867CD9D72BE91 }}
package: ./kabinizer-front-end/dist