diff --git a/.github/workflows/azure-static-web-apps-white-meadow-0907f6903.yml b/.github/workflows/azure-static-web-apps-white-meadow-0907f6903.yml index 6f717f0a..e23c0d97 100644 --- a/.github/workflows/azure-static-web-apps-white-meadow-0907f6903.yml +++ b/.github/workflows/azure-static-web-apps-white-meadow-0907f6903.yml @@ -2,8 +2,8 @@ name: Azure Static Web Apps CI/CD on: push: - branches: - - main + # branches: + # - main pull_request: types: [opened, synchronize, reopened, closed] branches: @@ -15,16 +15,32 @@ jobs: runs-on: ubuntu-latest name: Build and Deploy Job steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true lfs: false + + - name: Install pnpm + uses: pnpm/action-setup@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + # - name: Build + # run: pnpm run build + - name: Build And Deploy id: builddeploy uses: Azure/static-web-apps-deploy@v1 with: azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_MEADOW_0907F6903 }} repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) + app_build_command: 'pnpm run build' action: "upload" ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig diff --git a/.github/workflows/cd-web.yaml b/.github/workflows/cd-web.yaml index a2ede41a..ea55d76c 100644 --- a/.github/workflows/cd-web.yaml +++ b/.github/workflows/cd-web.yaml @@ -2,6 +2,8 @@ name: Deploy Frontend on: push: + branches: + - rrr jobs: build: