Skip to content

fix lint

fix lint #32

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
# pm2 serve /home/site/wwwroot --no-daemon --spa was in goodplays webapp startup command
name: Goodplays Dashboard CI/CD
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Node.js version
uses: actions/[email protected]
with:
node-version: '20.x'
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm run test --if-present
npm run delete --if-present
- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'goodplays'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_0BDB5D1F73104D8BA80CA03CF8C5828D }}
package: . # deploy nodejs app with react app inside client/build